Askr documentation
Generated API snapshot

@askrjs/themes/collapsible

Exports from the declarations published in @askrjs/themes. 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.Element

Renders 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: any

Props 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: any

Content 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: any

Root 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: any

Props for the asChild (polymorphic) rendering of Collapsible Trigger.

asChild
Render as child element instead of button
children
Child content
ref
Ref forwarding

CollapsibleTriggerPropstype

CollapsibleTriggerProps: any

Trigger component props (button semantics)

asChild
Render as child element instead of button
children
Child content
ref
Ref forwarding