An open API service indexing awesome lists of open source software.

https://github.com/sanity-io/ui

UI building blocks for Sanity.
https://github.com/sanity-io/ui

sanity-io ui-framework ui-library

Last synced: 13 days ago
JSON representation

UI building blocks for Sanity.

Awesome Lists containing this project

README

          

# @sanity/ui

The Sanity UI components.

```sh
npm install @sanity/ui

# Install peer dependencies
npm install react react-dom styled-components
```

[![npm version](https://img.shields.io/npm/v/@sanity/ui.svg?style=flat-square)](https://www.npmjs.com/package/@sanity/ui)

## Usage

```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(


,
)
```

## License

MIT-licensed. See LICENSE.