UNPKG

jiro-ui

Version:

A Mithril.js UI library based from construct-ui

21 lines (20 loc) 694 B
import m from 'mithril'; import { IAttrs, ISizeAttrs, IIntentAttrs } from '../../_shared'; import { IconName } from '../icon'; export interface ICalloutAttrs extends IAttrs, ISizeAttrs, IIntentAttrs { /** Inner text content */ content?: m.Children; /** * Callback invoked when "dismiss" icon is clicked; * Omitting this property will hide the dismiss icon. */ onDismiss?: (e: Event) => void; /** Header content */ header?: m.Children; /** Left-justified icon */ icon?: IconName; [htmlAttrs: string]: any; } export declare class Callout implements m.Component<ICalloutAttrs> { view({ attrs }: m.Vnode<ICalloutAttrs>): m.Vnode<any, any>; }