/** * Top-level directive exports — thin delegators to the api methods * {@link CollapsibleApi.triggerRef} / {@link CollapsibleApi.panelRef} * (defined inside `createCollapsible`). Either surface works; choose * based on import ergonomics. * * ```tsx * // cva-import-friendly form * import { collapsibleTrigger, collapsiblePanel } from "quoin"; * * ``` * * Delegates to `c.triggerRef()`. */ export function collapsibleTrigger( c: CollapsibleApi, ): (el: HTMLButtonElement | null) => void { return c.triggerRef(); } /** * Bind panel behaviour to the panel element. Same composition shape as * {@link collapsibleTrigger}. Delegates to `c.panelRef()`. */ export function collapsiblePanel( c: CollapsibleApi, ): (el: HTMLElement | null) => void { return c.panelRef(); }