bootstrap-4-react
Version:
Bootstrap 4 React components
18 lines (13 loc) • 514 B
JSX
import React, { Component } from 'react';
import { JS } from 'fsts';
import { mergeClassName, withClassName } from '../utilities';
import { BDiv } from './dom';
class Jumbotron extends Component {
render() {
const { fluid } = this.props;
const cn = mergeClassName(this.props, fluid? 'jumbotron-fluid' : '');
const p = JS.lessProps(this.props, ['className', 'fluid']);
return <BDiv {...p} className={cn}>{this.props.children}</BDiv>
}
}
export default withClassName('jumbotron')(Jumbotron);