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 React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(
<ThemeProvider theme={studioTheme}>
<Button text="Hello, world" />
</ThemeProvider>,
document.getElementById('root')
)
License
MIT-licensed. See LICENSE.