JSPM

@sanity/ui

1.0.0-beta.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 335578
  • Score
    100M100P100Q206153F
  • License MIT

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 @popperjs/core framer-motion react react-popper react-refractor styled-components

npm version

Usage

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

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

License

MIT-licensed. See LICENSE.