@rjsf/semantic-ui
Version:
Semantic UI theme, fields and widgets for react-jsonschema-form
15 lines • 694 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Grid } from 'semantic-ui-react';
/** Renders a `GridTemplate` for semantic-ui, which is expecting the column sizing information coming in via the
* extra props provided by the caller, which are spread directly on the `Flex`.
*
* @param props - The GridTemplateProps, including the extra props containing the semantic-ui grid positioning details
*/
export default function GridTemplate(props) {
const { children, column, ...rest } = props;
if (column) {
return _jsx(Grid.Column, { ...rest, children: children });
}
return _jsx(Grid, { ...rest, children: children });
}
//# sourceMappingURL=GridTemplate.js.map