mirror of
https://github.com/flarum/core.git
synced 2025-02-24 03:05:12 +01:00
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
|
import Component from 'flarum/component';
|
||
|
import listItems from 'flarum/helpers/list-items';
|
||
|
|
||
|
export default class FieldSet extends Component {
|
||
|
view() {
|
||
|
return m('fieldset', {className: this.props.className}, [
|
||
|
m('legend', this.props.label),
|
||
|
m('ul', listItems(this.props.fields))
|
||
|
]);
|
||
|
}
|
||
|
}
|