mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 13:05:50 +08: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))
|
|
]);
|
|
}
|
|
}
|