Files
NapCatQQ/.pnpm-store/v3/files/01/fd4107c555b53945432c6862d9ec4d0ebb8c4cc48c8bedb39fc30659847a92c5aebf7fac58c6bc05abb3923e8dffda27257c5be25f9a58835b1400db4e6aca
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

45 lines
1.6 KiB
Plaintext

import * as _heroui_system from '@heroui/system';
import { UseInputProps } from './use-input.js';
import 'react';
import '@heroui/theme';
import '@react-types/textfield';
type OmittedInputProps = "isClearButtonFocusVisible" | "isLabelPlaceholder" | "isTextarea";
type TextareaHeightChangeMeta = {
rowHeight: number;
};
interface TextAreaProps extends Omit<UseInputProps<HTMLTextAreaElement>, OmittedInputProps> {
/**
* Whether the textarea should automatically grow vertically to accomodate content.
* @default false
*/
disableAutosize?: boolean;
/**
* Minimum number of rows to show for textarea
* @default 3
*/
minRows?: number;
/**
* Maximum number of rows up to which the textarea can grow
* @default 8
*/
maxRows?: number;
/**
* Reuse previously computed measurements when computing height of textarea.
* @default false
*/
cacheMeasurements?: boolean;
/**
* Function invoked on textarea height change, with height as first argument.
* The second function argument is an object containing additional information that
* might be useful for custom behaviors. Current options include `{ rowHeight: number }`.
*
* @param height - The height of the textarea
* @param meta - Additional information about the height change
*/
onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void;
}
declare const Textarea: _heroui_system.InternalForwardRefRenderFunction<"textarea", TextAreaProps, never>;
export { TextAreaProps, TextareaHeightChangeMeta, Textarea as default };