@uva-glass/component-library
Version:
React components UvA
16 lines (15 loc) • 822 B
TypeScript
import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
export interface DrawerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'style' | 'className'> {
/** The buttons to render in the drawer. */
buttons?: ReactNode;
/** true if the drawer should be open; otherwise, false. The default is false. */
isOpen?: boolean;
/** The callback method that is invoked when the drawer is closed. */
onClose: () => void;
/** The title of the drawer. */
title: string;
/** The aria-label of the close button. */
closeButtonAriaValueText?: string;
}
/** Represents a Drawer component. */
export declare function Drawer({ buttons, children, isOpen, onClose, title, closeButtonAriaValueText, ...restProps }: PropsWithChildren<DrawerProps>): import("react/jsx-runtime").JSX.Element;