Skip to main content

ExampleWrapper

Agent Runtimes


Agent Runtimes / examples/components/ExampleWrapper / ExampleWrapper

Variable: ExampleWrapper

const ExampleWrapper: React.FC<{ children: React.ReactNode; }>

Defined in: src/examples/components/ExampleWrapper.tsx:23

ExampleWrapper

Provides every example with a definite-height, scroll-clipped container that fills the parent content area exactly. Examples mounted inside should treat this as their viewport: use height: '100%' on their root, then own their internal flex/grid layout (and place any internal scrollers on dedicated panels with minHeight: 0 + overflow: 'auto').

Also clears the shared chat + conversation stores synchronously as the new example mounts, so switching examples never leaks messages from the previously-mounted chat.