@spark-web/text-area
Version:
--- title: Text Area storybookPath: forms-textarea--default isExperimentalPackage: false ---
12 lines (11 loc) • 686 B
TypeScript
import type { DataAttributeMap } from '@spark-web/utils/internal';
import type { TextareaHTMLAttributes } from 'react';
export declare type NativeTextAreaProps = Pick<TextareaHTMLAttributes<HTMLTextAreaElement>, 'defaultValue' | 'name' | 'onBlur' | 'onChange' | 'placeholder' | 'required' | 'value'>;
export declare type TextAreaProps = NativeTextAreaProps & {
/** Sets data attributes for the element. */
data?: DataAttributeMap;
};
export declare const TextArea: import("react").ForwardRefExoticComponent<NativeTextAreaProps & {
/** Sets data attributes for the element. */
data?: DataAttributeMap | undefined;
} & import("react").RefAttributes<HTMLTextAreaElement>>;