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.
- Host: GitHub
- URL: https://github.com/sanity-io/ui
- Owner: sanity-io
- License: mit
- Created: 2020-06-29T17:14:46.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-02-21T10:06:51.000Z (17 days ago)
- Last Synced: 2026-02-23T14:38:42.994Z (15 days ago)
- Topics: sanity-io, ui-framework, ui-library
- Language: TypeScript
- Homepage: https://sanity.io/ui
- Size: 16.8 MB
- Stars: 160
- Watchers: 22
- Forks: 20
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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
```
[](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.