JSPM

@sanity/ui

3.0.0-static.32
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 335578
  • Score
    100M100P100Q206164F
  • License MIT

Package Exports

  • @sanity/ui
  • @sanity/ui/_visual-editing
  • @sanity/ui/css
  • @sanity/ui/css/index.css
  • @sanity/ui/package.json
  • @sanity/ui/theme

Readme

@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 '@sanity/ui/css/index.css'

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

createRoot(document).render(
  <Root lang="en">
    <Button text="Hello, world" />
  </Root>,
)

License

MIT-licensed. See LICENSE.