fictoan-react
Version:
A full-featured, designer-friendly, yet performant framework with plain-English props and focus on rapid iteration.
23 lines (22 loc) • 1.08 kB
TypeScript
import React from "react";
import { CommonAndHTMLProps, SpacingTypes } from '../Element/constants';
export interface DrawerCustomProps {
id: string;
position?: "top" | "right" | "bottom" | "left";
size?: SpacingTypes;
isDismissible?: boolean;
showOverlay?: boolean;
blurOverlay?: boolean;
closeOnClickOutside?: boolean;
label?: string;
description?: string;
}
export type DrawerElementType = HTMLDivElement;
export type DrawerProps = Omit<CommonAndHTMLProps<DrawerElementType>, keyof DrawerCustomProps> & DrawerCustomProps;
export declare const Drawer: React.ForwardRefExoticComponent<Omit<CommonAndHTMLProps<HTMLDivElement>, keyof DrawerCustomProps> & DrawerCustomProps & React.RefAttributes<HTMLDivElement>>;
export declare const showDrawer: (drawerId: string) => void;
export declare const hideDrawer: (drawerId: string) => void;
export declare const toggleDrawer: (drawerId: string) => void;
export declare const closeAllDrawers: () => void;
export declare const isDrawerOpen: (drawerId: string) => boolean;
//# sourceMappingURL=Drawer.d.ts.map