2.6.0 • Published 15 days ago

@rbxts/better-react-components v2.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

Better React Components

Roblox's ui elements, with builtin modifiers

Also see introduction

Example

<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

  • Stories
  • Support for Bindings in props
  • Better documentation

Components

  • Frame
  • ScrollableFrame
  • Button
  • ImageButton
  • Text
  • Image
  • TextBox

Modifiers

  • UIAspectRatioConstraint
  • UICorner
  • UIGradient
  • UIGridLayout (see GridLayout)
  • UIListLayout (see ListLayout)
  • UIFlexLayout (in Roblox Studio Beta Features, waiting for production release)
  • UIPadding
  • UIPageLayout
  • UIScale
  • UISizeConstraint
  • UIStroke
  • UITableLayout
  • UITextSizeConstraint
2.6.0

15 days ago

2.5.1

22 days ago

2.5.0

2 months ago

2.4.1

2 months ago

2.3.0

2 months ago

2.2.0

2 months ago

2.4.0

2 months ago

1.2.0

2 months ago

2.1.1

2 months ago

2.1.0

2 months ago

2.0.1

2 months ago

2.0.0

2 months ago

1.1.1

2 months ago

1.1.0

2 months ago

1.0.0

2 months ago