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) 849 B
import { FC } from 'react'; import { WidgetProps } from '@rjsf/utils'; /** * Telephone input widget using Ant Design Input component * * This widget provides a telephone/phone number input field with support for: * - Native tel input type for mobile keyboard optimization * - Pattern validation support * - All Ant Design Input API properties through uiSchema options * * @example * // In schema * { * type: "string", * format: "tel", * pattern: "^\\+?[1-9]\\d{1,14}$" // E.164 format * } * * // In uiSchema * { * "ui:widget": "tel", * "ui:options": { * placeholder: "+1 (555) 000-0000", * prefix: <PhoneOutlined />, * allowClear: true, * size: "large", * maxLength: 20 * } * } */ declare const TelephoneWidget: FC<WidgetProps>; export default TelephoneWidget; export { TelephoneWidget };