import { Divider } from 'primereact/divider'; import { FormContextType, getUiOptions, RJSFSchema, StrictRJSFSchema, TitleFieldProps, titleId, } from '@snups/rjsf-utils'; /** 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, uiSchema, required, }: TitleFieldProps) { const uiOptions = getUiOptions(uiSchema); return (
('root') ? '1.5rem' : '1.2rem' }}> {uiOptions.title || title} {required ? '*' : ''}
); }