UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

20 lines (19 loc) 813 B
import type { ComponentProps, ReactNode } from 'react'; import React from 'react'; import type { DeepPartial } from '../../types'; import type { FlowbiteBoolean, FlowbiteColors } from '../Flowbite'; export interface FlowbiteTextareaTheme { base: string; colors: TextareaColors; withShadow: FlowbiteBoolean; } export interface TextareaColors extends Pick<FlowbiteColors, 'gray' | 'info' | 'failure' | 'warning' | 'success'> { [key: string]: string; } export interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'color' | 'ref'> { color?: keyof TextareaColors; helperText?: ReactNode; shadow?: boolean; theme?: DeepPartial<FlowbiteTextareaTheme>; } export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;