Package Exports
- @sanity/ui
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sanity/ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@sanity/ui
The Sanity UI components.
npm install @sanity/ui
# Install peer dependencies
npm install react react-dom styled-components
Usage
import {Button, studioTheme, ThemeProvider} 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.