66 SelectOption ,
77 SelectRoot ,
88 SelectTrigger ,
9- SelectValue ,
9+ SelectValue
1010} from '@qwik-ui/headless' ;
1111import styles from './select.css?inline' ;
1212
@@ -16,15 +16,13 @@ export default component$(() => {
1616 < >
1717 < h2 > This is the documentation for the Select</ h2 >
1818 < SelectRoot >
19- < SelectLabel class = "mr-2" >
20- Alternate Tailwind Select implementation
21- </ SelectLabel >
19+ < SelectLabel class = "mr-2" > Alternate Tailwind Select implementation</ SelectLabel >
2220 < 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" >
2321 < SelectValue placeholder = "Select an option! ⚡" />
2422 </ SelectTrigger >
2523 < SelectListBox class = "w-full max-w-xs border border-base-content border-opacity-20 bg-base-100 rounded-[0.25rem] py-1" >
2624 < SelectOption
27- value = "🚀 Qwik"
25+ optionValue = "🚀 Qwik"
2826 class = "px-1 leading-loose hover:bg-gray-300"
2927 />
3028 < SelectGroup class = "" >
@@ -33,12 +31,12 @@ export default component$(() => {
3331 { value : '🍎 Apple' , disabled : false } ,
3432 { value : '🍌 Banana' , disabled : false } ,
3533 { value : '🍒 Cherry' , disabled : false } ,
36- { value : '🐲 Dragonfruit' , disabled : true } ,
34+ { value : '🐲 Dragonfruit' , disabled : true }
3735 ] . map ( ( option ) => {
3836 return (
3937 < SelectOption
4038 key = { option . value }
41- value = { option . value }
39+ optionValue = { option . value }
4240 disabled = { option . disabled }
4341 class = "px-1 leading-loose hover:bg-gray-300"
4442 />
0 commit comments