UNPKG

maille

Version:

Component library for MithrilJS

23 lines (22 loc) 609 B
import m from "mithril"; import { Children } from "mithril"; import { ClassComponent, Vnode } from "mithril"; import { AlertType } from "../../types"; interface AlertCloseOptions { key: any; fn?: (key: any) => void; elements?: Children; } interface AlertAttrs { title?: Children; description?: Children; type?: AlertType; rounded?: boolean; footer?: Array<Vnode<any, any>>; className?: string; closeOptions?: AlertCloseOptions; } declare class Alert implements ClassComponent<AlertAttrs> { view(vnode: Vnode<AlertAttrs>): m.Vnode<any, any>; } export default Alert;