Generated API snapshot
@askrjs/ui/collapsible
Exports from the declarations published in @askrjs/ui. Signatures reflect the published artifact.
Exports
This entrypoint publishes 8 exports. Use the anchored symbol rows for direct links. Type-only exports are labeled separately from runtime values.
Collapsibletype
Collapsible: (props: CollapsibleProps) => JSX.ElementRenders a part of collapsible.
CollapsibleContenttype
CollapsibleContent: { (props: CollapsibleContentProps): JSX.Element | null; (props: CollapsibleContentAsChildProps): JSX.Element | null; }Renders the collapsible-content part of collapsible.
Supports polymorphic rendering via asChild.
CollapsibleContentAsChildPropstype
CollapsibleContentAsChildProps: anyProps for the asChild (polymorphic) rendering of Collapsible Content.
asChild- Render as child element instead of div
children- Child content
forceMount- Force mount even when closed (for animation)
ref- Ref forwarding
CollapsibleContentPropstype
CollapsibleContentProps: anyContent component props
asChild- Render as child element instead of div
children- Child content
forceMount- Force mount even when closed (for animation)
ref- Ref forwarding
CollapsiblePropstype
CollapsibleProps: anyRoot component props
children- Child components (Trigger, Content)
defaultOpen- Uncontrolled default open state
disabled- Whether the collapsible is disabled
id- Stable caller-provided identity used for ARIA linking when available
onOpenChange- Callback when open state changes
open- Controlled open state
CollapsibleTriggertype
CollapsibleTrigger: { (props: CollapsibleTriggerProps): JSX.Element; (props: CollapsibleTriggerAsChildProps): JSX.Element; }Renders the collapsible-trigger part of collapsible.
Supports polymorphic rendering via asChild.
CollapsibleTriggerAsChildPropstype
CollapsibleTriggerAsChildProps: anyProps for the asChild (polymorphic) rendering of Collapsible Trigger.
asChild- Render as child element instead of button
children- Child content
ref- Ref forwarding
CollapsibleTriggerPropstype
CollapsibleTriggerProps: anyTrigger component props (button semantics)
asChild- Render as child element instead of button
children- Child content
ref- Ref forwarding