AnyLumino
API referenceastryxsurfaces

Collapsible

Render expandable notebook content.

Astryx Props

JSON-safe Collapsible props forwarded to Astryx.

Supported Astryx props include:

  • trigger (ReactNode; required): Content shown in the trigger area (always visible).
  • children (ReactNode): Content that collapses and expands.
  • defaultIsOpen (boolean): Default open state (uncontrolled).
  • isOpen (boolean): Controlled open state.
  • onOpenChange ((isOpen: boolean) => void): Callback invoked when the open state changes.
  • value (string): Identifier used for group coordination. Required when placed inside an CollapsibleGroup.

Props typed as React nodes, render functions, event handlers, refs, or StyleX styles are documented for Astryx parity but cannot be serialized directly from Python unless the wrapper adapts them.

See Astryx component docs: https://astryx.atmeta.com/components/Collapsible.

Functions

constructor__init__(children=None, *, trigger, open=True, default_open=None, value='', **props) -> None
paramchildrenChildInput
= None

Child widget, sequence of widgets, or mapping of slot names to widgets.

paramtriggerstr

Trigger content used by disclosure or overlay components.

paramopenbool
= True

Controlled open state synchronized with Python.

paramdefault_openbool | None
= None

Backward-compatible alias for open.

paramvaluestr
= ''

Synchronized component value.

parampropsAny
= {}

Returns

None

On this page