space ui
1.3.1
Pustaka komponen React untuk aplikasi metaverse 3D dan 2D.
1.) npm install @space-metaverse-ag/space-ui
2.) Bungkus ThemeProvider
di sekitar aplikasi Anda.
import { ThemeProvider } from '@space-metaverse-ag/space-ui'
const App = ({ Component, pageProps }: AppProps) => (
<Provider store={store}>
<ThemeProvider>
<Component {...pageProps} />
</ThemeProvider>
</Provider>
)
3.) Impor index.css
ke aplikasi Anda.
import "@space-metaverse-ag/space-ui/index.css"
Komponen:
import { Button, TextInput } from "@space-metaverse-ag/space-ui";
Ikon:
import { Home, UpArrow } from "@space-metaverse-ag/space-ui/icons";
Instal Node.js LTS
npm install --force
npm run storybook
Kunjungi: http://localhost:6006/
https://www.npmjs.com/package/@space-metaverse-ag/space-ui
https://storybook.dev.tryspace.com - dev
https://storybook.qa.tryspace.com - qa
https://storybook.tryspace.com - main