import m from 'mithril' ; import { Classes , IAttrs } from '../../_shared' ; export interface IFormLabelAttrs extends IAttrs { [ htmlAttrs ] : any ; } export class FormLabel implements m . Component < IFormLabelAttrs > { public view ( { attrs , children } ) { return m ( `label.${ Classes . FORM_LABEL }` , { ... attrs } , children ) ; } }