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) 817 B
import { FC } from 'react'; import { WidgetProps } from '@rjsf/utils'; /** * URL input widget using Ant Design Input component * * This widget provides a URL input field with support for: * - Native url input type for validation * - Built-in browser URL validation * - All Ant Design Input API properties through uiSchema options * * @example * // In schema * { * type: "string", * format: "uri", * pattern: "^https?://.*" // Optional: enforce http/https only * } * * // In uiSchema * { * "ui:widget": "url", * "ui:options": { * placeholder: "https://example.com", * prefix: <LinkOutlined />, * allowClear: true, * size: "large", * addonBefore: "https://" * } * } */ declare const URLWidget: FC<WidgetProps>; export default URLWidget; export { URLWidget };