Skip to main content

Agent Disconnect Button

A button for disconnecting the agent session.

Usage

Features

  • Customizable with icon and children props
  • Calls session.end() when clicked

Installation

pnpm dlx shadcn@latest add @agents-ui/agent-disconnect-button

Props

Prop nameTypeDefault
icon?
ReactNode
size?
enum
default
variant?
enum
destructive
children?
ReactNode
onClick?
function
ref?
Ref<HTMLButtonElement>
...props?
ComponentProps<'button'>