import { component$, Slot, type PropsOf } from '@builder.io/qwik'; import { Accordion as HeadlessAccordion } from '@qwik-ui/headless'; import { cn } from '@qwik-ui/utils'; import { LuChevronDown } from '@qwikest/icons/lucide'; const Root = (props: PropsOf) => ( {props.children} ); const Item = component$>((props) => { return ( ); }); const Trigger = component$< PropsOf & { header?: PropsOf['as']; } >(({ header = 'h3', ...props }) => { return ( svg]:rotate-180', props.class, )} > ); }); const Content = component$>((props) => { return (
); }); export const Accordion = { Root, Item, Trigger, Content, };