UNPKG

carbon-components-svelte

Version:
45 lines (37 loc) 982 B
import type { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type RestProps = SvelteHTMLElements["div"]; export interface StructuredListProps extends RestProps { /** * Specify the selected structured list row value * @default undefined */ selected?: string; /** * Set to `true` to use the condensed variant * @default false */ condensed?: boolean; /** * Set to `true` to flush the list * @default false */ flush?: boolean; /** * Set to `true` to use the selection variant * @default false */ selection?: boolean; [key: `data-${string}`]: any; } export default class StructuredList extends SvelteComponentTyped< StructuredListProps, { change: CustomEvent<string>; click: WindowEventMap["click"]; mouseover: WindowEventMap["mouseover"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; }, { default: {} } > {}