TreeItemDisplay
The default content for a <TreeItem>
Code
<script lang="ts">
import { TreeItemDisplay } from '@geoffcox/sterling-svelte';
</script>
<TreeItemDisplay hasChildren text="sterling-svelte" value="item">sterling-svelte</TreeItemDisplay>
Members
| Property Name | Type | Default | Comment | | depth | number | 0 |
| disabled | boolean | false |
| expanded | boolean | false |
| hasChildren | boolean | false |
| selected | boolean | false |
| value | string | |
| variant | string | '' |
Considerations
- Includes HTMLDivElement props, event, and methods
Anatomy
<div class="sterling-tree-item-display">
<TreeChevron {expanded} {hasChildren} {variant} />
<slot {depth} {disabled} {expanded} {hasChildren} {selected} {value} {variant} />
</div>