component LegendIndicator { outputs { toggle(payload: { sourceEvent?: Event; [key: string]: string | number | boolean | null | object }) select(payload: { value?: string | number | boolean | null; values?: Array; sourceEvent?: Event; [key: string]: string | number | boolean | null | object } | string | number | boolean | null) } props { size: string = "default" color: string = "primary" title: string = "Legend Indicator" description: string = "" items: unknown[] = [] variant: string = "default" class: string = "" } view {
{#if title}{title}{/if} {#if description}

{description}

{/if} {#if items}
{#each items as item}{item.label}{/each}
{/if}
} style { .wire-next--legend-indicator { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--wire-color-border); border-radius: var(--wire-radius); color: var(--wire-color-text); background: var(--wire-color-surface); } .wire-next--legend-indicator > p { margin: 0; color: var(--wire-color-muted); } .wire-next--legend-indicator > .wire-next__items { display: flex; flex-wrap: wrap; gap: 0.5rem; } .wire-next--legend-indicator > .wire-next__items > span { padding: 0.35rem 0.6rem; border-radius: var(--wire-radius-sm); background: var(--wire-color-surface-2); } } }