Getting Started
Components
- Agent Status
- Agent Template Card
- API Key Card
- Audio Player
- Bar Visualizer
- Channel Status Card
- Chat Composer
- Code Editor
- Condition Builder
- Confirm Dialog
- Conversation
- Conversation Bar
- Dataset Card
- Document Status Badge
- Extraction Strategy Select
- File Icon
- File Upload
- Indexing Progress
- Live Waveform
- Matrix
- Message
- Mic Selector
- Model Diff View
- Model Selector
- Model Type Filter
- Node Catalog
- Option Editor
- Orb
- Output Variables View
- Package Card
- Prompt Editor
- Provider Status Card
- Radio Card
- Resource Card
- Resource Sidebar
- Response
- Run Node List
- Scrub Bar
- Segment Card
- Shimmering Text
- Speech Input
- Token Trend Chart
- Tool Call Card
- Transcript Viewer
- Usage Stat Card
- Variable Binding Editor
- Variable Selector
- Voice Button
- Voice Picker
- Waveform
- Workflow Node Card
- Workspace Selector
"use client"
import { useState } from "react"
import { BotIcon, DatabaseIcon, WorkflowIcon } from "lucide-react"
import { RadioCard, RadioCardGroup } from "@/components/ui/radio-card"
export function RadioCardDemo() {
const [value, setValue] = useState("agent")
return (
<RadioCardGroup
value={value}
onValueChange={setValue}
className="w-full max-w-xl grid-cols-1 sm:grid-cols-3"
>
<RadioCard
value="agent"
icon={<BotIcon className="size-5" />}
title="Agent"
subtitle="Conversation runtime"
description="Best for chat and voice workflows."
/>
<RadioCard
value="workflow"
icon={<WorkflowIcon className="size-5" />}
title="Workflow"
subtitle="Multi-step automation"
description="Run structured tasks with tools."
/>
<RadioCard
value="data"
icon={<DatabaseIcon className="size-5" />}
title="Data"
subtitle="Knowledge source"
description="Attach datasets and tables."
/>
</RadioCardGroup>
)
}
Installation
pnpm dlx shadcn@latest add https://ui.zgi.ai/r/radio-card.json
Usage
import { RadioCard, RadioCardGroup } from "@/components/ui/radio-card"<RadioCardGroup value={mode} onValueChange={setMode}>
<RadioCard value="agent" title="Agent" description="Conversation runtime" />
<RadioCard value="workflow" title="Workflow" description="Structured tasks" />
</RadioCardGroup>API Reference
RadioCard
| Prop | Type | Description |
|---|---|---|
| value | string | Radio value |
| icon | ReactNode | Optional leading icon |
| title | ReactNode | Primary label |
| subtitle | ReactNode | Secondary label |
| description | ReactNode | Supporting copy |
| hiddenRadio | boolean | Hide the circular radio indicator |
RadioCardGroup
| Prop | Type | Description |
|---|---|---|
| value | string | Selected value |
| onValueChange | (value: string) => void | Selection handler |
| name | string | Optional radio group name |
Deploy and Scale Agents with ZGI
ZGI delivers the infrastructure and developer experience you need to ship reliable audio & agent applications at scale.
Talk to an expert