UNPKG

@base-ui/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.

23 lines 757 B
import type * as React from 'react'; import type { BaseUIComponentProps, NativeButtonProps } from "../../utils/types.js"; /** * A button that closes the drawer. * Renders a `<button>` element. * * Documentation: [Base UI Drawer](https://base-ui.com/react/components/drawer) */ export declare const DrawerClose: DrawerClose; export interface DrawerCloseProps extends NativeButtonProps, BaseUIComponentProps<'button', DrawerClose.State> {} export interface DrawerCloseState { /** * Whether the button is currently disabled. */ disabled: boolean; } export interface DrawerClose { (componentProps: DrawerCloseProps): React.JSX.Element; } export declare namespace DrawerClose { type Props = DrawerCloseProps; type State = DrawerCloseState; }