jiro-ui
Version:
A Mithril.js UI library based from construct-ui
18 lines (17 loc) • 583 B
TypeScript
import m from 'mithril';
import { IAttrs, ISizeAttrs, IIntentAttrs } from '../../_shared';
export interface ITagAttrs extends IAttrs, ISizeAttrs, IIntentAttrs {
/** Text label */
label?: m.Children;
/**
* Callback invoked when "remove" icon is clicked;
* Omitting this property will hide the remove icon.
*/
onRemove?: (e: Event) => void;
/** Toggles rounded styling */
rounded?: boolean;
[htmlAttrs: string]: any;
}
export declare class Tag implements m.Component<ITagAttrs> {
view({ attrs }: m.Vnode<ITagAttrs>): m.Vnode<any, any>;
}