Back to Copilotkit

Actions

showcase/shell-docs/src/content/reference/channels/components/Actions.mdx

1.64.2804 B
Original Source

Actions groups interactive controls.

tsx
import { Actions, Button, Message, Section } from "@copilotkit/channels/ui";

<Message>
  <Section>Approve this deployment?</Section>
  <Actions>
    <Button value="approve" style="primary" onClick={handleDecision}>
      Approve
    </Button>
    <Button value="deny" style="danger" onClick={handleDecision}>
      Deny
    </Button>
  </Actions>
</Message>;
PropTypeDescription
childrenBotChildrenInteractive Channels components.

Managed Slack renders an actions block. Managed Teams lifts Button children to the Adaptive Card's top-level actions. Use buttons for cross-provider managed workflows; managed Teams does not currently dispatch Select.onSelect or Input.onSubmit as independent callbacks.