@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
30 lines (29 loc) • 983 B
TypeScript
import { ReactNode, RefAttributes } from 'react';
export interface IPktInputWrapper extends RefAttributes<HTMLElement> {
forId: string;
label: string;
helptext?: string | ReactNode;
helptextDropdown?: string | ReactNode;
helptextDropdownButton?: string;
counter?: boolean;
counterCurrent?: number;
counterMaxLength?: number;
optionalTag?: boolean;
optionalText?: string;
requiredTag?: boolean;
requiredText?: string;
tagText?: string | null;
hasError?: boolean;
errorMessage?: string | ReactNode;
disabled?: boolean;
inline?: boolean;
ariaDescribedby?: string;
useWrapper?: boolean;
children?: ReactNode;
className?: string;
hasFieldset?: boolean;
role?: string;
counterPosition?: 'top' | 'bottom';
size?: 'small' | 'medium' | 'xsmall';
}
export declare const PktInputWrapper: import('react').ForwardRefExoticComponent<Omit<IPktInputWrapper, "ref"> & RefAttributes<HTMLDivElement>>;