UNPKG

maille

Version:

Component library for MithrilJS

24 lines (23 loc) 590 B
import m from "mithril"; import { Children } from "mithril"; import { ClassComponent, Vnode } from "mithril"; import { Size, TagType } from "../../types"; interface TagCloseOptions { key: any; fn?: (key: any) => void; elements?: Children; } interface TagAttrs { text?: string; type?: TagType; className?: string; style?: object; size?: Size; outlined?: boolean; rounded?: boolean; closeOptions?: TagCloseOptions; } declare class Tag implements ClassComponent<TagAttrs> { view(vnode: Vnode<TagAttrs>): m.Vnode<any, any>; } export default Tag;