import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible'; import * as React from 'react'; export type CollapsibleProps = React.ComponentPropsWithoutRef; /** * A disclosure: a trigger and the region it shows. * * The primitive under one section of an `Accordion`, available on its own for the cases an accordion * is wrong — a single optional section, a sidebar group, a "show advanced" row. Base UI owns * `aria-expanded`, `aria-controls` and the open state. * * Strix already has `organisms/collapsible-panel`, which is a *styled panel* with a header, a border * and a chevron. This is the unstyled mechanism it should have been built on; the pattern keeps its * own look and is not replaced. * * @example * * Advanced * {fields} * */ export declare const Collapsible: React.ForwardRefExoticComponent & React.RefAttributes, "ref"> & React.RefAttributes>; export type CollapsibleTriggerProps = React.ComponentPropsWithoutRef; export declare const CollapsibleTrigger: React.ForwardRefExoticComponent & React.RefAttributes, "ref"> & React.RefAttributes>; export type CollapsibleContentProps = React.ComponentPropsWithoutRef; /** * The region. shadcn calls it `Content`, Base UI calls it `Panel`; both names are exported. * * Height animates through `grid-template-rows: 0fr → 1fr` rather than `max-height`, which is what * `organisms/collapsible-panel` and `Accordion.Content` already do — a `max-height` guess either * clips tall content or leaves the transition sitting still for part of its duration. Base UI * publishes `--collapsible-panel-height`, so the animation is measured rather than assumed. */ export declare const CollapsibleContent: React.ForwardRefExoticComponent & React.RefAttributes, "ref"> & React.RefAttributes>; /** Base UI's name for {@link CollapsibleContent}. */ export declare const CollapsiblePanel: React.ForwardRefExoticComponent & React.RefAttributes, "ref"> & React.RefAttributes>; //# sourceMappingURL=collapsible.d.ts.map