import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type CarbonTileGroupContext = { selectedValue: import("svelte/store").Writable; groupName: import("svelte/store").Readable; groupRequired: import("svelte/store").Readable; add: (data: { checked: boolean; value: T }) => void; update: (value: T) => void; }; type $RestProps = SvelteHTMLElements["fieldset"]; type $Props = { /** * Specify the selected tile value. * @default undefined */ selected?: T | undefined; /** * Set to `true` to disable the tile group * @default false */ disabled?: boolean; /** * Set to `true` to require the selection of a radio button. * @default undefined */ required?: boolean; /** * Specify a name attribute for the radio button inputs. * @default undefined */ name?: string; /** * Specify the legend text. * Alternatively, use the named slot "legendChildren". * @example * ```svelte * * Custom Legend * * ``` * @default "" */ legendText?: string; legendChildren?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TileGroupProps = Omit< $RestProps, keyof $Props > & $Props; export default class TileGroup< T extends string = string, > extends SvelteComponentTyped< TileGroupProps, { select: CustomEvent }, { default: Record; legendChildren: Record } > {}