@cerberus-design/react
Version:
The Cerberus Design React component library.
25 lines (24 loc) • 805 B
TypeScript
import { DialogContentProps } from './primitives';
/**
* This module contains and abstraction of the Dialog primitives.
* @module 'dialog'
*/
export type DialogProps = DialogContentProps;
/**
* An abstraction of the Dialog primitives that controls the content of the
* dialog. Must be used within the `DialogProvider` component.
* @definition [Dialog docs](https://cerberus.digitalu.design/react/dialog)
* @definition [Ark Dialog docs](https://ark-ui.com/react/docs/components/dialog)
* @example
* ```tsx
* <DialogProvider>
* <DialogTrigger asChild>
* <Button>Open Dialog</Button>
* </DialogTrigger>
* <Dialog>
* <Text>Dialog Content</Text>
* </Dialog>
* </DialogProvider>
* ```
*/
export declare function Dialog(props: DialogProps): import("react/jsx-runtime").JSX.Element;