Skip to content

Documentation / @agentick/core / Collapsed

Function: Collapsed() ​

Collapsed(__namedParameters): ReactElement<{ group: string | undefined; name: string; }, string | JSXElementConstructor<any>>

Defined in: core/src/jsx/components/collapsed.tsx:22

Collapsed intrinsic wrapper.

Compiles to a text content block with semantic metadata:

  • rendererTag: "collapsed" for format-specific rendering
  • rendererAttrs: { name, group } for expand targeting

String children pass through as text prop. ReactNode children render as child elements — the collector's extractText recursively collects text from them.

Parameters ​

__namedParameters ​

CollapsedProps

Returns ​

ReactElement<{ group: string | undefined; name: string; }, string | JSXElementConstructor<any>>

Released under the ISC License.