Skip to content

Commit

Permalink
Merge pull request #377 from thejackshelton/accordion-improvements
Browse files Browse the repository at this point in the history
fix(select): ts error fix
  • Loading branch information
thejackshelton authored Jul 28, 2023
2 parents c3e4c2c + c6cef29 commit a90e9ce
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
SelectOption,
SelectRoot,
SelectTrigger,
SelectValue,
SelectValue
} from '@qwik-ui/headless';
import styles from './select.css?inline';

Expand All @@ -16,15 +16,13 @@ export default component$(() => {
<>
<h2>This is the documentation for the Select</h2>
<SelectRoot>
<SelectLabel class="mr-2">
Alternate Tailwind Select implementation
</SelectLabel>
<SelectLabel class="mr-2">Alternate Tailwind Select implementation</SelectLabel>
<SelectTrigger class="select-caret inline-flex items-center justify-between w-full h-12 max-w-xs px-4 text-sm font-semibold leading-loose border rounded-lg cursor-pointer border-base-content border-opacity-20 bg-base-100 shrink-0">
<SelectValue placeholder="Select an option! ⚡" />
</SelectTrigger>
<SelectListBox class="w-full max-w-xs border border-base-content border-opacity-20 bg-base-100 rounded-[0.25rem] py-1">
<SelectOption
value="🚀 Qwik"
optionValue="🚀 Qwik"
class="px-1 leading-loose hover:bg-gray-300"
/>
<SelectGroup class="">
Expand All @@ -33,12 +31,12 @@ export default component$(() => {
{ value: '🍎 Apple', disabled: false },
{ value: '🍌 Banana', disabled: false },
{ value: '🍒 Cherry', disabled: false },
{ value: '🐲 Dragonfruit', disabled: true },
{ value: '🐲 Dragonfruit', disabled: true }
].map((option) => {
return (
<SelectOption
key={option.value}
value={option.value}
optionValue={option.value}
disabled={option.disabled}
class="px-1 leading-loose hover:bg-gray-300"
/>
Expand Down

0 comments on commit a90e9ce

Please sign in to comment.