Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function StringField(props) {
const { registry, schema, uiSchema, formData } = props;
const uiOptions = getUiOptions(uiSchema);
const labels = uiOptions.labels || {};
const enumOptions = Array.isArray(schema.enum) && optionsList(schema);
let Widget = _.get('ui:reviewWidget', uiSchema);
if (!Widget) {
const defaultWidget = schema.format || (enumOptions ? 'select' : 'text');
Widget = getWidget(schema, uiOptions.widget || defaultWidget, registry.widgets);
}
return (
);
}