import m from 'mithril' ; import classnames from 'classnames' ; import { Classes , IAttrs } from '../../_shared' ; import { Grid , IGridAttrs } from '../grid' ; export interface IFormAttrs extends IAttrs , IGridAttrs { [ htmlAttrs ] : any ; } export class Form implements m . Component < IFormAttrs > { public view ( { attrs , children } ) { const classes = classnames ( Classes . FORM , attrs . class ) ; return m ( Grid , { ... attrs , element : 'form' , class : classes } , children ) ; } }