-

Radio Card

PreviousNext

Card-shaped radio controls for selecting ZGI agents, workflow modes, data sources, and other operational options.

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

PropTypeDescription
valuestringRadio value
iconReactNodeOptional leading icon
titleReactNodePrimary label
subtitleReactNodeSecondary label
descriptionReactNodeSupporting copy
hiddenRadiobooleanHide the circular radio indicator

RadioCardGroup

PropTypeDescription
valuestringSelected value
onValueChange(value: string) => voidSelection handler
namestringOptional radio group name