UNPKG

construct-ui

Version:
17 lines (16 loc) 555 B
import m from 'mithril'; import { IOverlayAttrs } from '../overlay'; export declare const DrawerPosition: { TOP: "top"; BOTTOM: "bottom"; RIGHT: "right"; LEFT: "left"; }; export declare type DrawerPosition = typeof DrawerPosition[keyof typeof DrawerPosition]; export interface IDrawerAttrs extends IOverlayAttrs { /** Position of drawer */ position?: DrawerPosition; } export declare class Drawer implements m.Component<IDrawerAttrs> { view({ attrs }: m.Vnode<IDrawerAttrs>): m.Vnode<IOverlayAttrs, unknown>; }