import type { Component } from 'svelte'; import type { ClassValue } from 'svelte/elements'; import type { IconName } from './icon'; export interface RadioOption { label: string; value: string; description?: string; disabled?: boolean; icon?: IconName; /** Additional CSS classes for the option's leading icon. */ iconCX?: ClassValue; /** Additional CSS classes for the option's label text. */ labelCX?: ClassValue; // Components to render after option. Defaults to only show when selected. Allow // any since we need maximum flexibility. // The string type is for HTML tags. // eslint-disable-next-line @typescript-eslint/no-explicit-any components?: (Component | string)[]; componentsProps?: Record[]; alwaysShowComponents?: boolean; // Error message to show beneath component errorMessage?: string; }