@cebus/react-dialog
v0.0.1
Published
A Dialog component that presents a surface that users can either complete tasks or obtain information from.
Downloads
15
Readme
Dialog
The Dialog component presents a surface that users can either complete tasks or obtain information from.
Use
- Install the @cebus/react-dialog component.
Using NPM
npm install @cebus/react-dialog
Using Yarn
yarn add @cebus/react-dialog
Install the @cebus/react-provider and our theme tokens from @cebus/react-theme
Set up the provider in your app:
import { Provider } from '@cebus/react-provider'
import { webLightTheme } from '@cebus/react-theme'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Provider>
)
}
- Integrate the Dialog component.
import { Provider } from '@cebus/react-provider'
import { web1ghtTheme } from '@cebus/react-theme'
import { Dialog } from '@cebus/react-dialog'
const MyApp = () => {
return (
<Provider theme={webLightTheme}>
<Dialog>...</Dialog>
<Provider>
)
}
API
To learn more about the Dialog API take a look at the Dialog Interface file.