@oslokommune/punkt-react
Version:
React komponentbibliotek til Punkt, et designsystem laget av Oslo Origo
24 lines (23 loc) • 837 B
TypeScript
import { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
export interface IPktCheckbox extends InputHTMLAttributes<HTMLInputElement> {
id: string;
hasTile?: boolean;
disabled?: boolean;
label?: string;
checkHelptext?: ReactNode | ReactNode[] | string;
hasError?: boolean;
defaultChecked?: boolean;
checked?: boolean;
indeterminate?: boolean;
value?: string;
isSwitch?: boolean;
hideLabel?: boolean;
labelPosition?: 'right' | 'left';
optionalTag?: boolean;
optionalText?: string;
requiredTag?: boolean;
requiredText?: string;
tagText?: string | null;
onChange?: ChangeEventHandler<HTMLInputElement>;
}
export declare const PktCheckbox: import('react').ForwardRefExoticComponent<IPktCheckbox & import('react').RefAttributes<HTMLInputElement>>;