mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
37 lines
785 B
TypeScript
37 lines
785 B
TypeScript
/// <reference types="svelte" />
|
|
|
|
export interface SelectableTileGroupProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["fieldset"]> {
|
|
/**
|
|
* Specify the selected tile's
|
|
* @default []
|
|
*/
|
|
selectedValues?: string;
|
|
|
|
/**
|
|
* Set to `true` to disable the tile group
|
|
* @default false
|
|
*/
|
|
disabled?: boolean;
|
|
|
|
/**
|
|
* Set to `true` to enable the light variant
|
|
* @default false
|
|
*/
|
|
light?: boolean;
|
|
|
|
/**
|
|
* Specify the legend text
|
|
* @default ""
|
|
*/
|
|
legend?: string;
|
|
}
|
|
|
|
export default class SelectableTileGroup {
|
|
$$prop_def: SelectableTileGroupProps;
|
|
$$slot_def: {
|
|
default: {};
|
|
};
|
|
|
|
$on(eventname: "select", cb: (event: CustomEvent<any>) => void): () => void;
|
|
$on(eventname: string, cb: (event: Event) => void): () => void;
|
|
}
|