UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

25 lines (24 loc) 860 B
import React from 'react'; export interface TextAreaFieldBlockProps { focus: boolean; error: boolean; skeleton: boolean; disabled: boolean; textarea: { disabled: boolean; onFocus: (event: React.FocusEvent<HTMLTextAreaElement>) => void; onBlur: (event: React.FocusEvent<HTMLTextAreaElement>) => void; } & Omit<React.ComponentProps<'textarea'>, 'contentEditable'>; } export interface TextAreaFieldProps extends React.ComponentProps<'textarea'> { className?: string; label?: string | boolean | React.ReactNode; fullWidth?: boolean; error?: string | boolean; disabled?: boolean; skeleton?: boolean; glow?: boolean; renderTextAreaBlock?: (props: TextAreaFieldBlockProps) => React.ReactNode; } export declare const TextAreaField: React.FC<TextAreaFieldProps>; export * from './styled';