Skip to main content

ScaffolderRJSFFormProps._internalFormWrapper

Home > @backstage/plugin-scaffolder-react > ScaffolderRJSFFormProps > \_internalFormWrapper

_internalFormWrapper is currently used by the semantic-ui theme to provide a custom wrapper around <Form /> that supports the proper rendering of those themes. To use this prop, one must pass a component that takes two props: children and as. That component, at minimum, should render the children inside of a

tag unless as is provided, in which case, use the as prop in place of <form />. i.e.:

export default function InternalForm({ children, as }) {
const FormTag = as || 'form';
return <FormTag>{children}</FormTag>;
}

Use at your own risk as this prop is private and may change at any time without notice.

Signature:

_internalFormWrapper?: ElementType;