{legend}
{#each options as o (o.value)}
{ value = o.value; onchange?.(o.value); }} /> {o.label}
{/each}