reablocks
Version:
Component library for React
28 lines (27 loc) • 913 B
TypeScript
import { default as React, ReactNode, HTMLAttributes } from 'react';
import { DrawerTheme } from './DrawerTheme';
export interface DrawerHeaderProps extends HTMLAttributes<HTMLElement> {
/**
* The content of the drawer header.
*/
children?: ReactNode;
/**
* The CSS class name for the root element of the component.
*/
className?: string;
/**
* Whether to show the close button in the drawer header.
* When used in context, defaults to Drawer's showCloseButton prop.
*/
showCloseButton?: boolean;
/**
* Callback when the close button is clicked.
* When used in context, defaults to Drawer's onClose prop.
*/
onClose?: () => void;
/**
* Theme for the Drawer Header.
*/
theme?: DrawerTheme;
}
export declare const DrawerHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLElement>>;