reablocks
Version:
Component library for React
33 lines (32 loc) • 1.09 kB
TypeScript
import { default as React, ReactNode, HTMLAttributes } from 'react';
import { DialogTheme } from './DialogTheme';
export interface DialogHeaderProps extends HTMLAttributes<HTMLElement> {
/**
* The content of the dialog header.
*/
children?: ReactNode;
/**
* The CSS class name for the root element of the component.
*/
className?: string;
/**
* Whether to show the close button in the dialog header.
* When used in context, defaults to Dialog's showCloseButton prop.
*/
showCloseButton?: boolean;
/**
* Whether to disable padding for the dialog header.
* When used in context, inherits from Dialog's disablePadding prop.
*/
disablePadding?: boolean;
/**
* Callback when the close button is clicked.
* When used in context, defaults to Dialog's onClose prop.
*/
onClose?: () => void;
/**
* Theme for the Dialog Header.
*/
theme?: DialogTheme;
}
export declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLElement>>;