baseui
Version:
A React Component library implementing the Base design language
33 lines (32 loc) • 904 B
TypeScript
import * as React from 'react';
import type { TextareaProps } from './types';
import type { FocusEvent } from 'react';
declare class Textarea extends React.Component<TextareaProps, {
isFocused: boolean;
}> {
static defaultProps: {
autoFocus: boolean;
disabled: boolean;
readOnly: boolean;
error: boolean;
name: string;
onBlur: () => void;
onChange: () => void;
onKeyDown: () => void;
onKeyPress: () => void;
onKeyUp: () => void;
onFocus: () => void;
overrides: {};
placeholder: string;
required: boolean;
rows: number;
size: "default";
};
state: {
isFocused: boolean;
};
onFocus: (e: FocusEvent<HTMLTextAreaElement>) => void;
onBlur: (e: FocusEvent<HTMLTextAreaElement>) => void;
render(): React.JSX.Element;
}
export default Textarea;