import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["label"]; type $Props = { /** * Set to `true` to check the tile. * @default false */ checked?: boolean; /** * Set the size: `"sm"` for a compact tile, such as a row in a list of * choices, with less padding, no minimum height, and the checkmark * pulled in. Defaults to the size of a parent tile group. */ size?: "sm" | "md" | undefined; /** * Set to `true` to disable the tile * @default false */ disabled?: boolean; /** * Set to `true` to stretch the tile to fill the height of its container * @default false */ fullHeight?: boolean; /** * Set to `true` to round the tile's corners when it has a `decorator`, * such as an `AILabel`. Carbon reserves rounded tiles for AI content. * @default false */ rounded?: boolean; /** * Set to `true` to mark the field as required * @default false */ required?: boolean; /** * Specify the value of the radio input. * @default "" */ value?: Value; /** * Specify the tabindex * @default "0" */ tabindex?: number | string | undefined; /** * Specify the title for the radio tile checkmark icon. * The icon is hidden from assistive technology, so this only sets the * tooltip shown on hover. * @default "Tile checkmark" */ iconDescription?: string; /** * Set an id for the input element * @default uniqueId() */ id?: string; /** * Specify a name attribute for the radio tile input. */ name?: string | undefined; /** * Specify the id of a form element outside the component to associate * the radio input with. */ form?: string | undefined; /** * Obtain a reference to the input HTML element. * @default null */ ref?: null | HTMLInputElement; decorator?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type RadioTileProps = Omit<$RestProps, keyof $Props> & $Props; export default class RadioTile extends SvelteComponentTyped< RadioTileProps, { blur: WindowEventMap["blur"]; change: WindowEventMap["change"]; click: WindowEventMap["click"]; focus: WindowEventMap["focus"]; keydown: WindowEventMap["keydown"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record; decorator: Record; } > {}