UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

26 lines 1.51 kB
import React from 'react'; import { DefaultProps, MantineSize } from '../../theme'; import { InputWrapperBaseProps, InputWrapperStylesNames } from '../InputWrapper/InputWrapper'; import { InputBaseProps, InputStylesNames } from '../Input/Input'; export declare type TextareaStylesNames = InputStylesNames | InputWrapperStylesNames; export interface TextareaProps extends DefaultProps<TextareaStylesNames>, InputWrapperBaseProps, InputBaseProps, React.ComponentPropsWithoutRef<'textarea'> { /** Id is used to bind input and label, if not passed unique id will be generated for each input */ id?: string; /** If true textarea will grow with content until maxRows are reached */ autosize?: boolean; /** Defines maxRows in autosize variant, not applicable to regular variant */ maxRows?: number; /** Defined minRows in autosize variant and rows in regular variant */ minRows?: number; /** Props passed to root element (InputWrapper component) */ wrapperProps?: Record<string, any>; /** Get element ref */ elementRef?: React.ForwardedRef<HTMLTextAreaElement>; /** Input size */ size?: MantineSize; } export declare function Textarea({ autosize, maxRows, minRows, label, error, description, id, className, required, themeOverride, style, wrapperProps, elementRef, classNames, styles, size, __staticSelector, ...others }: TextareaProps): JSX.Element; export declare namespace Textarea { var displayName: string; } //# sourceMappingURL=Textarea.d.ts.map