JSPM

@sanity/ui

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

Package Exports

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

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

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

const root = createRoot(document.getElementById('root'))

root.render(
  <Card className={defaultTheme} scheme="light" tone="default">
    <Button text="Hello, world" />
  </Card>,
)

License

MIT-licensed. See LICENSE.