Cards
Improve user experience with by emphasizing key points or links using customizable icons and images. WriteChoice integrates with Phospor Icons to provide you with a vast library of icons at hand, improving speed and style.
Attributes
This example demonstrates how to use a card with an icon and a link. Clicking on the card will take you to the Attributes heading.
This is how you build a single card:
<Card
title="Attributes"
description="This example demonstrates how to use a card with an icon and a link. Clicking on the card will take you to the Attributes heading."
link="/cards/#attributes"
icon="cards"
iconType='duotone'
iconSize='32px'
/>
Attributes
title string
required
The title displayed on the card.
description string
A brief explanation of the card's purpose and behavior, shown beneath the title.
link string
The URL or path the Card links to when clicked.
icon string
The name of the icon displayed on the Card from the Phosphor Icons library, such as "address-book".
iconType string
Specifies the weight (or style) of the icon. The possible values are: thin
, light
, regular
, bold
, fill
, and duotone
. Default: regular
.
iconSize string
Defines the size of the icon in px. The default value is 32px.
Card Groups
Display cards side by side in a grid layout. The <CardList>
component allows you to organize multiple <Card>
components together, commonly used to align multiple cards within the same column.
Duotone Card
This card shows a book icon with duotone weight.
Thin Card
This card shows an airplane icon with thin weight.
Regular Card
This card shows an alarm icon with regular weight.
Filled Card
This card shows a club icon with filled weight.