@sanity/ui
Version:
The Sanity UI components.
34 lines (23 loc) • 659 B
Markdown
//img.shields.io/npm/v/@sanity/ui.svg?style=flat-square)](https://www.npmjs.com/package/@sanity/ui)
```jsx
import {Button, ThemeProvider} from '@sanity/ui'
import {buildTheme} from '@sanity/ui/theme'
import {createRoot} from 'react-dom/client'
const root = createRoot(document.getElementById('root'))
const theme = buildTheme()
root.render(
<ThemeProvider theme={theme}>
<Button text="Hello, world" />
</ThemeProvider>,
)
```
MIT-licensed. See LICENSE.
The Sanity UI components.
```sh
npm install @sanity/ui
npm install react react-dom styled-components
```
[![npm version](https: