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.

20 lines 741 B
import * as React from 'react'; import type { BaseUIComponentProps, NativeButtonProps } from "../../utils/types.js"; /** * A button that closes the dialog. * Renders a `<button>` element. * * Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog) */ export declare const DialogClose: React.ForwardRefExoticComponent<DialogCloseProps & React.RefAttributes<HTMLButtonElement>>; export interface DialogCloseProps extends NativeButtonProps, BaseUIComponentProps<'button', DialogClose.State> {} export interface DialogCloseState { /** * Whether the button is currently disabled. */ disabled: boolean; } export declare namespace DialogClose { type Props = DialogCloseProps; type State = DialogCloseState; }