@rbxts/better-react-components
TypeScript icon, indicating that this package has built-in type declarations

2.9.1 • Public • Published

Better React Components

NPM Downloads NPM Version

Roblox's ui elements, with builtin modifiers

Also see introduction

Example

Comperance

better-react-components code
```
<Frame
    position={new UDim2(.5, 0, .5, 0)}
    size={new UDim2(.5, 0, .5, 0)}

    anchorPoint={AnchorPoints.Middle}
    cornerRadius={8}
    padding={4}
>
    <GridLayout
        cellSize={new UDim2(.25, 0, .25, 0)}
        cellPadding={new UDim2(0, 4, 0, 4)}
        cellAspectRatio={1}
    />

    <DummyElement />
    <Button
        textColor={"#64FEE7"}
        text="Hello world!"
    />
    <Text
        background={"#64FEE7"}
        text="Hello there!"
        font={Enum.Font.Arial}
    />
</Frame>;
```

Support

TODO

  • [ ] Upgrade ESLint to 9.*.* version
  • [ ] Better documentation

Components

  • [X] Frame
  • [X] ScrollableFrame
  • [X] Button
  • [ ] ImageButton
  • [X] Image
  • [X] Text
  • [X] TextBox
  • [X] CanvasGroup

Modifiers

  • [X] UIAspectRatioConstraint
  • [X] UICorner
  • [X] UIGradient
  • [X] UIGridLayout (see GridLayout)
  • [X] UIListLayout (see ListLayout)
  • [X] UIFlexLayout (see ListLayout)
  • [X] UIPadding
  • [ ] UIPageLayout
  • [X] UIScale
  • [X] UISizeConstraint
  • [X] UIStroke
  • [ ] UITableLayout
  • [X] UITextSizeConstraint

Custom Modifiers

  • [ ] FlowLayout (view) (Removed due release of flex features to ListLayout. Devforum )

Readme

Keywords

none

Package Sidebar

Install

npm i @rbxts/better-react-components

Weekly Downloads

7

Version

2.9.1

License

MIT

Unpacked Size

42.6 kB

Total Files

36

Last publish

Collaborators

  • idkncc