Skip to content

Commit

Permalink
next: select default demo (#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte authored Oct 27, 2024
1 parent f278123 commit 633d883
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script lang="ts">
import * as Select from "$lib/registry/default/ui/select/index.js";
import { Label } from "$lib/registry/default/ui/label/index.js";
const fruits = [
{ value: "apple", label: "Apple" },
Expand All @@ -23,7 +22,7 @@
</Select.Trigger>
<Select.Content>
<Select.Group>
<Label>Fruits</Label>
<Select.GroupHeading>Fruits</Select.GroupHeading>
{#each fruits as fruit}
<Select.Item value={fruit.value} label={fruit.label}>{fruit.label}</Select.Item>
{/each}
Expand Down

0 comments on commit 633d883

Please sign in to comment.