Getting Started
This project is built for react-lua, which can be installed either via NPM/yarn, wally, or a release. See the repository for more information.
StudioComponents exposes a table of components, hooks, and a reference to the Constants file. Minimal example of using a component from StudioComponents:
local React = require(Packages.React)
local StudioComponents = require(Packages.StudioComponents)
local function MyComponent()
return React.createElement(StudioComponents.Label, {
Text = "Hello, from StudioComponents!"
})
end
Installation
Wally
Add studiocomponents
to your wally.toml
:
studiocomponents = "sircfenner/studiocomponents@1.0.0"
NPM & yarn
Add studiocomponents
to your dependencies:
npm install @sircfenner/studiocomponents
yarn add @sircfenner/studiocomponents
Run npmluau
.