Skip to content
Sign upPro
BillingCapability cardMenu

Capability card (Pro)

ProIncluded in $99

What the assistant can and cannot do, shown before the first message, with example lines that start the prompt.

ProA finance assistant sets expectations before the first message; lines with an example start that prompt.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/capability-card

Needs chatcn Pro

This command works with a Pro license, along with every Pro component.

Or start free: sign up and get three Pro components on us, with a new one every month.

Usage

tsx
import { CapabilityCard } from "@/components/ui/chatcn/pro/capability-card"

<CapabilityCard
  title="Ledger"
  subtitle="Answers questions about your books."
  can={[{ title: "Draft the monthly report", example: "Draft the October report" }]}
  cannot={[{ title: "Move money or pay bills" }]}
  note="It can be wrong. Check figures before you send them."
  onTry={startChat}
/>

Setting expectations before the first answer saves the first bad one. The two lists carry the same weight; the limits are not small print. A line with an example becomes a button that starts that prompt, so the card is also the first useful thing to click. The lists stack on a narrow card.

Examples

States

ProOnly what it can do, and a narrow card where the lists stack.

Props

PropTypeNotes
title, subtitle, markReactNode
can, cannotCapability[]{ title, detail?, example? }
noteReactNodeA plain line at the bottom
onTry(example) => voidTurns lines with an example into buttons
labelsPartial<CapabilityCardLabels>Every string, for translation

Accessibility

  • Can and cannot are headed lists, with icons as a second signal.
  • Example buttons say what they will ask.

Motion

None.