@helpwave/hightide
Version:
helpwave's component and theming library
31 lines (28 loc) • 1.22 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { TextareaHTMLAttributes } from 'react';
import { UseDelayOptions } from '../../hooks/useDelay.mjs';
import { LabelProps } from './Label.mjs';
type TextareaProps = {
/** Outside the area */
label?: Omit<LabelProps, 'id'>;
/** Inside the area */
headline?: string;
value?: string;
resizable?: boolean;
onChangeText?: (text: string) => void;
disclaimer?: string;
onEditCompleted?: (text: string) => void;
saveDelayOptions?: UseDelayOptions;
defaultStyle?: boolean;
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'>;
/**
* A Textarea component for inputting longer texts
*
* The State is managed by the parent
*/
declare const Textarea: ({ label, headline, id, resizable, onChange, onChangeText, disclaimer, onBlur, onEditCompleted, saveDelayOptions, defaultStyle, disabled, className, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
/**
* A Textarea component that is not controlled by its parent
*/
declare const TextareaUncontrolled: ({ value, onChangeText, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
export { Textarea, type TextareaProps, TextareaUncontrolled };