export default TreeItem; type TreeItem = { $on?(type: string, callback: (e: any) => void): () => void; $set?(props: Partial>): void; }; /** * An item (node) within the `` widget. An item that has the `items` slot content becomes a * parent node that can be expanded and collapsed. * @see https://w3c.github.io/aria/#treeitem * @see https://www.w3.org/WAI/ARIA/apg/patterns/treeview/ */ declare const TreeItem: import("svelte").Component | undefined; /** * Child items slot content, which makes the item a parent node. */ items?: Snippet<[]> | undefined; /** * Start icon slot content. */ startIcon?: Snippet<[]> | undefined; /** * End icon slot content. */ endIcon?: Snippet<[]> | undefined; /** * Chevron icon slot content. */ chevronIcon?: Snippet<[]> | undefined; /** * Custom `Change` event handler, called when * the selection state is changed. */ onChange?: ((event: CustomEvent) => void) | undefined; /** * Custom `Select` event handler. */ onSelect?: ((event: CustomEvent) => void) | undefined; /** * Custom `Expand` event handler, called when * the item is expanded or collapsed. */ onExpand?: ((event: CustomEvent) => void) | undefined; } & Record, {}, "selected" | "expanded">; type Props = { /** * The `class` attribute on the wrapper element. */ class?: string | undefined; /** * Whether to hide the widget. An alias of the `aria-hidden` * attribute. */ hidden?: boolean | undefined; /** * Whether to disable the widget. An alias of the `aria-disabled` * attribute. */ disabled?: boolean | undefined; /** * Whether to select the item. An alias of the `aria-selected` * attribute. */ selected?: boolean | undefined; /** * Whether to expand the item. An alias of the `aria-expanded` * attribute. Ignored if the item has no `items` slot content. */ expanded?: boolean | undefined; /** * Text label displayed on the item. */ label?: string | undefined; /** * The `data-value` attribute on the item. Default: the `label`. */ value?: any; /** * Data type of the `value`. Typically `string`, `number` or * `boolean`. Default: auto detect. */ valueType?: string | undefined; /** * Primary slot content, used instead of the `label`. */ children?: Snippet<[]> | undefined; /** * Child items slot content, which makes the item a parent node. */ items?: Snippet<[]> | undefined; /** * Start icon slot content. */ startIcon?: Snippet<[]> | undefined; /** * End icon slot content. */ endIcon?: Snippet<[]> | undefined; /** * Chevron icon slot content. */ chevronIcon?: Snippet<[]> | undefined; /** * Custom `Change` event handler, called when * the selection state is changed. */ onChange?: ((event: CustomEvent) => void) | undefined; /** * Custom `Select` event handler. */ onSelect?: ((event: CustomEvent) => void) | undefined; /** * Custom `Expand` event handler, called when * the item is expanded or collapsed. */ onExpand?: ((event: CustomEvent) => void) | undefined; }; import type { Snippet } from 'svelte';