UNPKG

extended-dynamic-forms

Version:

Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events

35 lines (33 loc) 884 B
import { FC } from 'react'; import { WidgetProps } from '@rjsf/utils'; /** * Email input widget using Ant Design Input component * * This widget provides an email input field with support for: * - Native email input type for validation and mobile keyboard optimization * - Built-in browser email validation * - All Ant Design Input API properties through uiSchema options * * @example * // In schema * { * type: "string", * format: "email", * pattern: "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$" // Optional custom pattern * } * * // In uiSchema * { * "ui:widget": "email", * "ui:options": { * placeholder: "user@example.com", * prefix: <MailOutlined />, * allowClear: true, * size: "large", * suffix: ".com" * } * } */ declare const EmailWidget: FC<WidgetProps>; export default EmailWidget; export { EmailWidget };