Choicebox
Choicebox builds a card-like radio selection from composed titles, descriptions and indicators.
Practical React example
Choose one plan or delivery option from a small set of descriptive cards.
Before you copy and paste
Use the composed primitives together under their required provider, where one is present. Copy components/kibo-ui/choicebox/index.tsx and its returned support files from the Code tab; preserve the project-relative paths. Install the listed primitives: pnpm dlx shadcn@latest add field radio-group.
Listed package dependencies: lucide-react, radix-ui.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Choose one plan or delivery option from a small set of descriptive cards
// Usage adapted from Kibo UI's pinned MIT source.
// Copyright (c) 2023 — Present shadcnblocks. See ./LICENSES.md.
'use client';
import {
Choicebox,
ChoiceboxIndicator,
ChoiceboxItem,
ChoiceboxItemDescription,
ChoiceboxItemHeader,
ChoiceboxItemSubtitle,
ChoiceboxItemTitle,
} from "@/components/kibo-ui/choicebox";
const options = [
{
id: "1",
label: "Option 1",
subtitle: "(the first option)",
description: "This is the first option",
},
{
id: "2",
label: "Option 2",
subtitle: "(the second option)",
description: "This is the second option",
},
];
const Example = () => (
<Choicebox defaultValue="1">
{options.map((option) => (
<ChoiceboxItem key={option.id} value={option.id}>
<ChoiceboxItemHeader>
<ChoiceboxItemTitle>
{option.label}
<ChoiceboxItemSubtitle>{option.subtitle}</ChoiceboxItemSubtitle>
</ChoiceboxItemTitle>
<ChoiceboxItemDescription>
{option.description}
</ChoiceboxItemDescription>
</ChoiceboxItemHeader>
<ChoiceboxIndicator />
</ChoiceboxItem>
))}
</Choicebox>
);
export default Example;
Usage example adapted from Kibo UI's pinned MIT source. Retain the source licence notices when copying.
Use a stable value for each item and connect the root selection to the form’s data. Keep labels and descriptions concise enough to compare the options.
Customization
- value / onValueChange
- The root forwards the underlying radio-group props. Keep each ChoiceboxItem value unique and connect selection to the same form state.
Integration notes
- The selected card is not proof that a purchase or account change completed.
- Check keyboard group navigation and whether extra content inside an option creates conflicting interactive targets.
Component source: Kibo UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.