Modal
Gen UI 2.0 standardA dialog over the page. A click on the trigger (a Button or a Text) opens the content in the dialog. Escape, the close button or a click on the backdrop closes it.
One of the 69 components in CopilotKit's standardUI. The playground's catalog extends it, so every agent here can use Modal. Standard catalog docs
Props
Read from standardUI.manifestComponents in the installed @copilotkit/react-core. In A2UI 1.0 any value may also be a { "@path" } binding into the surface data model or a { "@call" } function call.
| Prop | Type | Required | Description |
|---|---|---|---|
| trigger | component id | No | Id of one child component. |
| content | component id | No | Id of one child component. |
| title | string | No | The heading of the dialog |
| open | boolean | No | Default false. Bind it with { "@path": "/x" } to read it |
| maxWidth | number | string | No | Default 480 |
| weight | number | No | flex-grow in a Row or Column |