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