1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-25 15:58:56 +01:00
2021-11-09 12:15:15 +01:00

19 lines
460 B
JavaScript

import {type ClassComponent} from 'mithril';
import Component from '../Component.jsx';
import Content from './Content.jsx';
export default class Card extends Component implements ClassComponent<{outlined?: boolean}> {
view(vnode) {
this.attrs.addClassNames('mdc-card', {
'mdc-card--outlined': this.attrs.has('outlined')
});
return (
<div {...this.attrs.all()}>
<Content>{vnode.children}</Content>
</div>
);
}
}