extended-dynamic-forms
Version:
Extended React JSON Schema Form (RJSF) v6 with custom components, widgets, templates, layouts, and form events
39 lines (37 loc) • 1.08 kB
TypeScript
import { FC } from 'react';
import { WidgetProps } from '@rjsf/utils';
/**
* Enhanced Textarea Widget with full Ant Design TextArea support
*
* Supports all Ant Design TextArea properties through uiSchema options:
* - rows: number (default: 4)
* - autoSize: boolean | { minRows: number, maxRows: number }
* - size: 'small' | 'middle' | 'large'
* - placeholder: string
* - allowClear: boolean
* - bordered: boolean
* - maxLength: number
* - showCount: boolean | { formatter: (info: { count: number, maxLength?: number }) => string }
* - status: 'error' | 'warning'
* - style: CSSProperties
* - className: string
*
* @example
* // In uiSchema
* {
* "myField": {
* "ui:widget": "textarea",
* "ui:options": {
* "rows": 6,
* "autoSize": { "minRows": 3, "maxRows": 10 },
* "placeholder": "Enter detailed description",
* "allowClear": true,
* "showCount": true,
* "maxLength": 500
* }
* }
* }
*/
declare const TextareaWidget: FC<WidgetProps>;
export default TextareaWidget;
export { TextareaWidget };