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

ListItem

An item within a list.

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

<ListItem value="item1">sterling-svelte</ListItem>

Members

Property NameTypeDefaultComment
disabledboolean | null | undefinedfalseWhen true, the item is disabled.
valuestring | undefinedundefinedThe value uniquely identifying this item within the list.

Considerations

  • Includes HTMLDivElement props, events, and methods.

Anatomy

<div class="sterling-list-item">
  {@render children()}
</div>