dbl-components
Version:
Framework based on bootstrap 5
22 lines (17 loc) • 461 B
JavaScript
import React from "react";
import View from "./view";
export default class TitleView extends View {
static jsClass = 'TitleView';
content(children = this.props.children) {
const { label, labelClasses } = this.props;
return (
React.createElement(React.Fragment, {},
React.createElement('h1',
{ className: labelClasses },
label
),
super.content(children)
)
);
}
}