UNPKG

maille

Version:

Component library for MithrilJS

23 lines (22 loc) 551 B
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>): any; } export default Tag;