jiro-ui
Version:
A Mithril.js UI library based from construct-ui
17 lines (16 loc) • 539 B
TypeScript
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>;
}