// Sections that open and close, on native
: no JavaScript, and find-in-page opens the // section it finds text in. Give the items one `name` for an accordion where one opens at a time, // and an item `open` to start open. import type { Child, Html } from '../lib/jsx/jsx-runtime.ts' import css from './accordion.css' with { type: 'text' } export const ACCORDION_CSS = css type Props = Record & { children?: Child } export function Accordion(props: Props): Html { let { children, ...attributes } = props return (
{children}
) } export function AccordionItem(props: Props): Html { let { children, ...attributes } = props return (
{children}
) } export function AccordionTrigger(props: Props): Html { let { children, ...attributes } = props return ( {children} ) } export function AccordionContent(props: Props): Html { let { children, ...attributes } = props return (
{children}
) }