@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
28 lines (27 loc) • 1.11 kB
TypeScript
import { ReactNode, SelectHTMLAttributes } from 'react';
export type { IPktSelectOption, TSelectOption } from '../../shared-types/select';
export interface IPktSelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
ariaDescribedby?: string;
ariaLabelledby?: string;
children?: ReactNode | ReactNode[];
disabled?: boolean;
errorMessage?: string | ReactNode | ReactNode[];
hasError?: boolean;
helptext?: string | ReactNode | ReactNode[];
helptextDropdown?: string | ReactNode | ReactNode[];
helptextDropdownButton?: string;
id: string;
inline?: boolean;
fullwidth?: boolean;
label: string;
name?: string;
optionalTag?: boolean;
optionalText?: string;
requiredTag?: boolean;
requiredText?: string;
tagText?: string | null;
inputSize?: 'small' | 'medium' | 'xsmall';
/** @deprecated Var aldri implementert — bruk children med `<option>`-elementer. */
options?: never;
}
export declare const PktSelect: import('react').ForwardRefExoticComponent<IPktSelectProps & import('react').RefAttributes<HTMLSelectElement>>;