react-antd-admin-panel
Version:
Modern TypeScript-first React admin panel builder with Ant Design 6
51 lines • 1.23 kB
TypeScript
import React from 'react';
import { FormFieldBuilder, FormFieldBuilderConfig } from '../base/FormFieldBuilder';
export interface TextAreaConfig extends FormFieldBuilderConfig {
rows?: number;
maxLength?: number;
minLength?: number;
autoSize?: boolean | {
minRows?: number;
maxRows?: number;
};
showCount?: boolean;
allowClear?: boolean;
}
/**
* TextArea Field Builder
* Wrapper for Ant Design TextArea component
*/
export declare class TextArea extends FormFieldBuilder<TextAreaConfig, string> {
/**
* Set number of rows
*/
rows(value: number): this;
/**
* Set maximum length
*/
maxLength(value: number): this;
/**
* Set minimum length
*/
minLength(value: number): this;
/**
* Enable auto-size (height adjusts to content)
*/
autoSize(value?: boolean | {
minRows?: number;
maxRows?: number;
}): this;
/**
* Show character count
*/
showCount(value?: boolean): this;
/**
* Enable clear button
*/
allowClear(value?: boolean): this;
/**
* Render the textarea component
*/
render(): React.ReactNode;
}
//# sourceMappingURL=TextArea.d.ts.map