@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
46 lines (45 loc) • 1.46 kB
TypeScript
import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
export interface IPktTextinput extends InputHTMLAttributes<HTMLInputElement> {
id: string;
ariaDescribedby?: string;
ariaLabelledby?: string;
autocomplete?: string;
counter?: boolean;
counterMaxLength?: number;
disabled?: boolean;
errorMessage?: string | ReactNode | ReactNode[];
hasError?: boolean;
helptext?: string | ReactNode | ReactNode[];
helptextDropdown?: string | ReactNode | ReactNode[];
helptextDropdownButton?: string;
iconNameRight?: string;
inline?: boolean;
fullwidth?: boolean;
label: string;
name?: string;
optionalTag?: boolean;
optionalText?: string;
requiredTag?: boolean;
requiredText?: string;
tagText?: string | null;
placeholder?: string;
prefix?: string;
suffix?: string;
type?: string;
useWrapper?: boolean;
value?: string;
omitSearchIcon?: boolean;
min?: number | string;
max?: number | string;
minLength?: number;
maxLength?: number;
step?: string;
size?: number;
readonly?: boolean;
required?: boolean;
dataTestid?: string;
onChange?: ChangeEventHandler<HTMLInputElement>;
skipForwardTestid?: boolean;
inputSize?: 'small' | 'medium' | 'xsmall';
}
export declare const PktTextinput: import('react').ForwardRefExoticComponent<IPktTextinput & import('react').RefAttributes<HTMLInputElement>>;