maille
Version:
Component library for MithrilJS
22 lines (21 loc) • 570 B
TypeScript
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>): any;
}
export default Alert;