SDAIA
SDAIA LogoSDAIA Logo
ComponentsCard
IntroductionInstallationFAQBrands
ColorsTypographySpacingRadiusGrid layoutsAll Tokens
All Components
AccordionActivityArea ChartAudio PlayerAvatarAvatarGroupCarousel ImageChartChipCode SnippetColumn ChartContext MenuDigital StampDividerDonut ChartDraggable ListDropdownEmpty StateFiltrationFooterImage ViewerLine ChartListMedia GalleryMenuMetricNav BarNav HeaderNumberPDF ViewerPie ChartPopoverProgress CircleQuoteRadial StepperScatterSecond Nav HeaderSlideout MenuStructured ListTableTable of ContentTree ViewVertical TabsVideo Player
BreadcrumbButtonButton MenuButton SplitContent SwitcherDate PickerFloating ButtonHorizontal TabsLinkModalPaginationRadio ButtonSwitchTag
AutocompleteCheckboxFile UploadNumber InputRange SliderRich Text EditorSelectSignatureSliderText AreaText Input
AlertsBadgeCardFeedbackFeedback OverviewHelp IconLoading IndicatorNotification BannerNotification PopupNotificationsProgress BarRatingRating OverviewSkeletonSkeleton/AvatarsTooltip
Sdaia Logo Animation
Sdaia Touch ButtonsSdaia Touch Switch

Card

A card is a flexible container used to group related information and actions into a single, structured unit. It helps organize content in a clear and visually distinct way, making it easier for users to scan and interact with.

Loading preview…
1'use client';
2
3import { Button, Card } from 'sdaia-ui';
4
5export default function CardRealWorld() {

Installation

npx sdaia-ui@latest add card

Usage

1<Card className="w-full max-w-[400px]">
2 <Card.Content
3 leadingItem={
4 <Card.LeadingItem type="featured-icon" featuredIconVariant="outline" />
5 }
6 label="Label"
7 helperText="Helper Text"
8 showCheckbox={false}
9 />
10 <Card.Footer type="actions">
11 <Button variant="primary">Action</Button>
12 <Button variant="neutral">Action</Button>
13 </Card.Footer>
14 </Card>

Examples

Standard

The default alert style with a subtle background.

Loading preview…
1<Card>
2 <Card.Header
3 contentLayout="inline"
4 leadingItem={<Card.LeadingItem type="avatar" avatar={{ size: 'xl' }} />}
5 label="Label"

Default

A general-purpose card for displaying content.

Loading preview…
1<Card>
2 <Card.Content
3 leadingItem={
4 <Card.LeadingItem type="featured-icon" featuredIconVariant="outline" />
5 }

Content

Card designed for rich text and descriptive content.

Loading preview…
1<Card>
2 <Card.Header
3 contentLayout="inline"
4 leadingItem={<Card.LeadingItem type="avatar" avatar={{ size: 'xl' }} />}
5 label="Label"

Product

Product card with image, title, price, and an action button.

Loading preview…
1<Card>
2 <Card.Media type="image" imageSrc="..." imageAlt="Product" stretched hideLeadingIcon />
3 <Card.Content leadingItem={null} label="Label" helperText="Helper Text" showCheckbox={false} />
4 <Card.Footer type="actions">
5 <Button variant="primary" fullWidth>Add to Card</Button>

Item

Compact item card suited for list-style layouts.

Loading preview…
1<Card>
2 <Card.Header
3 contentLayout="separated"
4 leadingItem={<Card.LeadingItem type="featured-icon" />}
5 label="Label"

Event

Event card showing the date, title, and location.

Loading preview…
1<Card>
2 <Card.Media type="image" imageSrc="..." imageAlt="Event" hideLeadingIcon />
3 <Card.Content
4 leadingItem={null}
5 label="Event Name"

Social Post

Social post card with avatar, content, and engagement actions.

Loading preview…
1<Card>
2 <Card.Header
3 contentLayout="inline"
4 leadingItem={<Card.LeadingItem type="avatar" avatar={{ size: 'xl' }} />}
5 label="Label"

Task

Task card for to-do and project management views.

Loading preview…
1<Card>
2 <Card.Header
3 contentLayout="inline"
4 leadingItem={<Card.LeadingItem type="featured-icon" />}
5 helperText="UX/UI Designer"

Media Stretched

Card with a media area that stretches to the full card width.

Loading preview…

API Reference

CardProps

Props for the Card component.

Prop

Type

Default

Required

children

ReactNode

-

optional

dir

'ltr' | 'rtl'

-

optional

direction

'ltr' | 'rtl'

deprecated

optional
Badge
Feedback
On this page
Riyadh City

Event Name

December, 16 - 9:00 AM - 9:30 AM

Online

Ministry of Communications

Latest updates from government digital channels.

Ministry of Communications

Latest updates from government digital channels.

Riyadh City
0
0
0
0

Service request

Submit a new government service request.

My Applications

View and manage your service application details.

Kingdom Tower

My Applications

View and manage your service application details.

Saudi Mosque

Analytics Platform

Browse and apply for available government services.

Digital Services

Manage your registered items and submissions.

Kingdom Tower
LB

Digital Services

Active
0
0
0
0
Riyadh City

Event Name

December, 24 - 9:00 AM - 9:30 AM

Online

Ministry of Communications

Latest updates from government digital channels.

Ministry of Communications

Latest updates from government digital channels.

Riyadh City
0
0
0
0

UX/UI Designer

Complete pending tasks assigned to your account.

LB

Review data submission

Active
Saudi Mosque

Saudi Digital Economy

Explore Saudi Arabia's digital transformation initiatives.