UNPKG

extended-dynamic-forms

Version:

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

41 lines (39 loc) 970 B
import { FC } from 'react'; import { WidgetProps } from '@rjsf/utils'; /** * Enhanced Text Widget with full Ant Design Input support * * Supports all Ant Design Input properties through uiSchema options: * - size: 'small' | 'middle' | 'large' * - placeholder: string * - prefix: ReactNode * - suffix: ReactNode * - allowClear: boolean * - bordered: boolean * - maxLength: number * - showCount: boolean * - addonBefore: ReactNode * - addonAfter: ReactNode * - status: 'error' | 'warning' * - style: CSSProperties * - className: string * * @example * // In uiSchema * { * "myField": { * "ui:widget": "text", * "ui:options": { * "placeholder": "Enter text here", * "allowClear": true, * "showCount": true, * "maxLength": 100, * "prefix": <UserOutlined />, * "addonAfter": ".com" * } * } * } */ declare const TextWidget: FC<WidgetProps>; export default TextWidget; export { TextWidget };