@navikt/ds-react
Version:
React components from the Norwegian Labour and Welfare Administration.
26 lines (25 loc) • 702 B
TypeScript
import React from "react";
interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
/**
* Whether to show a close button in the header.
* Will trigger `onOpenChange` when clicked.
* @default true
*/
withClosebutton?: boolean;
}
/**
* @see 🏷️ {@link DialogHeaderProps}
* @example
* ```jsx
* <Dialog>
* <Dialog.Popup>
* <Dialog.Header>
* <Dialog.Title>Dialog title</Dialog.Title>
* </Dialog.Header>
* </Dialog.Popup>
* </Dialog>
* ```
*/
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
export { DialogHeader };
export type { DialogHeaderProps };