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) -> NoneparamchildrenChildInput= NoneChild widget, sequence of widgets, or mapping of slot names to widgets.
paramtriggerstrTrigger content used by disclosure or overlay components.
paramopenbool= TrueControlled open state synchronized with Python.
paramdefault_openbool | None= NoneBackward-compatible alias for open.
paramvaluestr= ''Synchronized component value.
parampropsAny= {}Returns
None