UNPKG

@vlinderclimate/net-zero-ui

Version:

<div align="center"> <img src="https://storage.yandexcloud.net/static.vlinderstorage.com/Telegram_VlinderTech.png" width=200 /> </div> <h1 align="center">Net Zero UI kit</h1>

27 lines (26 loc) 847 B
import React from "react"; import { SwipeableDrawerProps as MuiSwipeableDrawerProps } from "@mui/material/SwipeableDrawer"; import { IconProps } from "./Icon"; export declare type DrawerSize = "xs" | "sm" | "md" | "safeArea" | "fullScreen"; export interface DrawerProps extends MuiSwipeableDrawerProps { /** * Make backdrop color transparent */ transparentBackdrop?: boolean; /** * Width of the drawer box. */ size?: DrawerSize; /** * Render a close button at top-right corner. * If `true`, a default `closeCircle` icon will be applied. * Or changing the icon with iconKey. */ closeButton?: boolean | IconProps["iconKey"]; /** * Is scrollable? */ scrollable?: boolean; } declare const Drawer: React.FC<DrawerProps>; export default Drawer;