UNPKG

@rjsf/react-bootstrap

Version:

React Bootstrap theme, fields and widgets for react-jsonschema-form, powered by react-bootstrap

16 lines 734 B
import { jsx as _jsx } from "react/jsx-runtime"; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; /** Renders a `GridTemplate` for react-bootstrap, which is expecting the column sizing information coming in via the * extra props provided by the caller, which are spread directly on the `Row`/`Col`. * * @param props - The GridTemplateProps, including the extra props containing the react-bootstrap grid positioning details */ export default function GridTemplate(props) { const { children, column, ...rest } = props; if (column) { return _jsx(Col, { ...rest, children: children }); } return _jsx(Row, { ...rest, children: children }); } //# sourceMappingURL=GridTemplate.js.map