UNPKG

@oslokommune/punkt-react

Version:

React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo

38 lines (37 loc) 1.29 kB
import { ChangeEventHandler, ReactNode, TextareaHTMLAttributes } from 'react'; import { TPktInputSize } from '../../shared-types/size'; export interface IPktTextarea extends TextareaHTMLAttributes<HTMLTextAreaElement> { id: string; ariaDescribedby?: string; ariaLabelledby?: string; counter?: boolean; counterMaxLength?: number; disabled?: boolean; errorMessage?: string | ReactNode | ReactNode[]; hasError?: boolean; helptext?: string | ReactNode | ReactNode[]; helptextDropdown?: string | ReactNode | ReactNode[]; helptextDropdownButton?: string; inline?: boolean; fullwidth?: boolean; label: string; name?: string; optionalTag?: boolean; optionalText?: string; requiredTag?: boolean; requiredText?: string; tagText?: string | null; placeholder?: string; rows?: number; useWrapper?: boolean; value?: string; autocomplete?: string; minLength?: number; maxLength?: number; readOnly?: boolean; required?: boolean; skipForwardTestid?: boolean; inputSize?: TPktInputSize; onChange?: ChangeEventHandler<HTMLTextAreaElement>; } export declare const PktTextarea: import('react').ForwardRefExoticComponent<IPktTextarea & import('react').RefAttributes<HTMLTextAreaElement>>;