Skip to content

Commit

Permalink
chore: add story
Browse files Browse the repository at this point in the history
  • Loading branch information
zernonia committed Sep 18, 2024
1 parent 2149487 commit 06c30ff
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/radix-vue/src/Listbox/story/ListboxChromatic.story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,23 @@ const multipleControl = ref()
</ListboxContent>
</ListboxRoot>
</Variant>

<Variant title="Orientation (Horizontal)">
<ListboxRoot
class="w-64 h-full flex flex-col p-1 rounded-lg border bg-white text-green9 mx-auto overflow-auto"
orientation="horizontal"
>
<ListboxContent class="flex flex-row ">
<ListboxItem
v-for="i in options"
:key="i"
:value="i"
class="w-full py-1 px-2 text-green9 select-none text-sm focus:ring-0 data-[highlighted]:outline-green9 data-[highlighted]:outline-1 data-[highlighted]:outline focus:outline-green9 data-[state=checked]:bg-green9 data-[state=checked]:text-white data-[disabled]:opacity-50 rounded"
>
{{ i }}
</ListboxItem>
</ListboxContent>
</ListboxRoot>
</Variant>
</Story>
</template>

0 comments on commit 06c30ff

Please sign in to comment.