/** * Collapsible skin routed through the active adapter's disclosure mechanics. * The dependency-free builtin provides controlled or uncontrolled state, * stable ARIA control wiring, and content retained as `hidden` while closed so * hydration and stateful descendants remain deterministic. * * @module react/components/ui/collapsible */ import * as React from "react"; /** Props accepted by ``. */ export interface CollapsibleProps extends Omit, "onChange"> { open?: boolean; defaultOpen?: boolean; onOpenChange?: (open: boolean) => void; disabled?: boolean; /** * Stable id for the trigger and the content's `aria-labelledby`. Required for * that relationship in SSR output. */ triggerId?: string; /** * Stable id for the content and the trigger's `aria-controls`. Required for * that relationship in SSR output. */ contentId?: string; /** React 19: ref is a regular prop. */ ref?: React.Ref; } /** * Collapsible root whose open-state mechanics come from the active adapter. * Public parts register their realized IDs through context, so opaque wrappers * and multiple triggers retain unique DOM IDs and synchronized ARIA references * without inspecting or rewriting the consumer's React tree. Supply root * `triggerId` and `contentId` values when the same relationships must be present * in static SSR output, before refs can register rendered parts. */ export declare function Collapsible({ children, triggerId, contentId, ...props }: CollapsibleProps): React.ReactElement; /** Props accepted by ``. */ export interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes { asChild?: boolean; ref?: React.Ref; } /** Toggle through the active disclosure adapter. `asChild` composes onto one child. */ export declare function CollapsibleTrigger({ asChild, children, id, ref, "aria-controls": ariaControls, ...props }: CollapsibleTriggerProps): React.ReactElement; /** Props accepted by ``. */ export interface CollapsibleContentProps extends React.HTMLAttributes { /** React 19: ref is a regular prop. */ ref?: React.Ref; } /** Collapsible content retained in the DOM and hidden while closed. */ export declare function CollapsibleContent({ children, id, ref, "aria-labelledby": ariaLabelledBy, ...props }: CollapsibleContentProps): React.ReactElement; //# sourceMappingURL=collapsible.d.ts.map