@pongo-ui/react-dialog
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

Dialog

The Dialog component presents a surface that users can either complete tasks or obtain information from.

Use

  1. Install the @pongo-ui/react-dialog component.

Using NPM

npm install @pongo-ui/react-dialog

Using Yarn

yarn add @pongo-ui/react-dialog
  1. Install the @pongo-ui/react-provider and our theme tokens from @pongo-ui/react-theme

  2. Set up the provider in your app:

import { Provider } from '@pongo-ui/react-provider'
import { webLightTheme } from '@pongo-ui/react-theme'

const MyApp = () => {
  return (
    <Provider theme={webLightTheme}>
    <Provider>
  )
}
  1. Integrate the Dialog component.
import { Provider } from '@pongo-ui/react-provider'
import { web1ghtTheme } from '@pongo-ui/react-theme'
import { Dialog } from '@pongo-ui/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.

Readme

Keywords

none

Package Sidebar

Install

npm i @pongo-ui/react-dialog

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

99.4 kB

Total Files

126

Last publish

Collaborators

  • pongobuild
  • czearing