UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

21 lines (20 loc) 679 B
import * as React from 'react'; import type { BaseUIComponentProps } from '../../utils/types.js'; /** * A button that opens the alert dialog. * Renders a `<button>` element. * * Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog) */ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogTrigger.Props & React.RefAttributes<HTMLButtonElement>>; declare namespace AlertDialogTrigger { interface Props extends BaseUIComponentProps<'button', State> { } interface State { /** * Whether the dialog is currently open. */ open: boolean; } } export { AlertDialogTrigger };