space ui
1.3.1
适用于 Metaverse 3D 和 2D 应用程序的 React 组件库。
1.) npm install @space-metaverse-ag/space-ui
2.) 将ThemeProvider
包裹在您的应用程序周围。
import { ThemeProvider } from '@space-metaverse-ag/space-ui'
const App = ({ Component, pageProps }: AppProps) => (
<Provider store={store}>
<ThemeProvider>
<Component {...pageProps} />
</ThemeProvider>
</Provider>
)
3.) 将index.css
导入到您的应用程序中。
import "@space-metaverse-ag/space-ui/index.css"
成分:
import { Button, TextInput } from "@space-metaverse-ag/space-ui";
图标:
import { Home, UpArrow } from "@space-metaverse-ag/space-ui/icons";
安装 Node.js LTS
npm install --force
npm run storybook
转到: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