UNPKG

@datalayer/primer-rjsf

Version:

React JSON Schema Form (RJSF) for Primer

10 lines (9 loc) 486 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Box, Heading } from "@primer/react"; /** The `TitleField` is the template to use to render the title of a field * * @param props - The `TitleFieldProps` for this component */ export default function TitleField({ id, title }) { return (_jsx(Box, { id: id, my: 2, children: _jsx(Heading, { as: "h5", sx: { fontSize: 1, borderBottom: '1px solid', borderColor: 'border.default', paddingBottom: 1 }, children: title }) })); }