import { component$, QRL, QwikChangeEvent, Slot, useSignal, useStylesScoped$, } from '@builder.io/qwik'; import styles from './select.css?inline'; export const borderStyle = 'border-blue-gray-900 border'; export const styleClass = 'px-4 py-1.5 bg-mf-gray hover:bg-white focus:bg-mf-gray text-lg '; export interface SelectProps { name: string; id?: string; class?: string; value?: string; } export default component$((props: SelectProps) => { useStylesScoped$(styles); const open = useSignal(false); return ( <>
(open.value = false)} class={`absolute w-screen h-screen top-0 right-0 bg-transparent ${ open.value ? 'visible' : 'invisible' }`} >
); }); export interface SelectOptionProps { selected?: boolean; onClick$?: QRL<() => void>; } export const SelectOption = component$((props: SelectOptionProps) => { return ( ); });