@trellixio/roaster-coffee
Version:
Beans' product component library
29 lines • 1.23 kB
TypeScript
import * as React from 'react';
export interface TextareaProps {
/** The ID of the textarea element. */
id?: string;
/** The number of rows to display in the textarea. */
rows?: number;
/** An error message to display below the textarea, if applicable. */
error?: string;
/** Whether the textarea should be disabled. */
disabled?: boolean;
/** Placeholder text to display in the textarea. */
placeholder?: string;
/** The default value of the textarea. */
defaultValue?: string;
/** The label to display above the textarea. */
label?: React.ReactNode;
/** CSS class names to apply to the label. */
labelClassName?: string;
/** CSS class names to apply to the textarea. */
inputClassName?: string;
/** Help text to display below the textarea. */
helpText?: React.ReactNode;
/** Additional styles to apply to the textarea. */
style?: React.CSSProperties;
/** A callback function that is called when the value of the textarea changes. */
onChange?(value: string): void;
}
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
//# sourceMappingURL=Textarea.d.ts.map