/ui

UI building blocks for Sanity.

Primary LanguageTypeScriptMIT LicenseMIT

@sanity/ui

The Sanity UI components.

npm install @sanity/ui

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

npm version

Usage

import {Button, ThemeProvider, studioTheme} from '@sanity/ui'
import {createRoot} from 'react-dom/client'

const root = createRoot(document.getElementById('root'))
root.render(
  <ThemeProvider theme={studioTheme}>
    <Button text="Hello, world" />
  </ThemeProvider>
)

License

MIT-licensed. See LICENSE.