sterling-svelte  2.0.0
A modern, accessible, lightweight UI component library for Svelte.

TreeChevron

An indicator for a leaf or expanded/collapsed item within a tree hierarchy.

Code
<script lang="ts">
  import { TreeChevron } from '@geoffcox/sterling-svelte';
</script>

<TreeChevron />

Members

Property NameTypeDefaultComment
expandedboolean | null | undefinedfalseWhen true and hasChildren is true, indicates the item is expanded.
hasChildrenboolean | null | undefinedfalseWhen true, indicates the item can be expanded. Otherwise, indicates the item is a leaf.

Considerations

  • Includes HTMLDivElement props, events, and methods.

Anatomy

chevron (<div>)