UNPKG

@mattilsynet/designsystem-svelte

Version:

Design system for Mattilsynet

21 lines (20 loc) 642 B
import type { ErrorDetail } from '../../../ts'; import type { CheckboxOption } from '../../../ts/types'; declare const Checkbox: import("svelte").Component<{ value?: Array<string>; name: string; label: string; error?: ErrorDetail; helpText?: string; options?: Array<CheckboxOption>; isRequired?: boolean; textOptional?: string; showOptionalText?: boolean; hiddenErrorText?: string; theme?: "checkbox" | "button"; class?: string; legendClass?: string; onChange?: (element: HTMLInputElement) => void; }, {}, "value">; type Checkbox = ReturnType<typeof Checkbox>; export default Checkbox;