DocsGitHub
Getting Started
  • Overview
  • Design Tokens
Components
  • Accordion
  • Alert
  • Announcement
  • Avatar
  • Badge
  • BigCalendar
  • Breadcrumb
  • Button
  • ButtonGroup
  • Calendar
  • Card
  • Checkbox
  • Chip
  • CloseButton
  • Combobox
  • CommandPalette
  • ContextMenu
  • Currency
  • DatePicker
  • DescriptionList
  • Drawer
  • DropdownMenu
  • EmptyState
  • Field
  • FileUpload
  • FormGrid
  • Hotkey
  • Icon
  • Input
  • Metric
  • Modal
  • MultiSelect
  • NumberInput
  • Pagination
  • Popover
  • ProgressBar
  • Radio
  • Rating
  • SegmentedControl
  • Select
  • SelectionCard
  • Sidebar
  • Skeleton
  • Slider
  • Spinner
  • Stepper
  • Switch
  • Table
  • Tabs
  • Textarea
  • Timeline
  • TimePicker
  • Toast
  • Tooltip
  • TransferList
  • TreeView
  • Wizard
Charts
  • Overview
  • Area Chart
  • Bar Chart
  • Donut Chart
  • Line Chart
  • Pie Chart
  • Stacked Bar Chart

Selection Card

Card-style radio options for selecting between choices. Works inside a RadioGroup and auto-detects its variant from the icon or image prop.

Installation

tsx
import { RadioGroup } from "madagent"; import { SelectionCard } from "madagent";

Default

With Icon

With Image

Disabled

PropTypeDefaultDescription
value*
string
-The value submitted when this card is selected
title*
string
-Card headline text
description
string
-Supporting text below the title
icon
ReactNode
-Icon element displayed above the title (activates icon variant)
image
ReactNode
-Image element displayed at the top of the card (activates image variant)
disabled
boolean
falseWhether this card is disabled

RTL Support

Components automatically adapt to right-to-left languages using CSS logical properties.

Preview

Usage

tsx
<RadioGroup name="خطة" defaultValue="standard">
  <div style={{ display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: 12 }}>
    <SelectionCard value="basic" title="أساسي" description="للمشاريع الشخصية والتجارب." />
    <SelectionCard value="standard" title="قياسي" description="للفرق الصغيرة التي تحتاج إلى التعاون." />
    <SelectionCard value="enterprise" title="مؤسسي" description="للمؤسسات ذات الاحتياجات المتقدمة." />
  </div>
</RadioGroup>