---
id: card
title: Card
---

# Card

Cards can be used to divide and organize interface content for better understandability and readability.
When used correctly, Cards can help users to scan through vast amounts of information quicker.

## How to use

<code src="@digigov/ui/src/content/Card/__stories__/Default.tsx" />

### With gray border color

<code src="@digigov/ui/src/content/Card/__stories__/WithGrayBorder.tsx" />

### With dark border color

<code src="@digigov/ui/src/content/Card/__stories__/WithDarkBorder.tsx" />

### With top border

You can set the color of the Card's top border. You can choose between dark and grey color respectively. By default the top border color is grey.

<code src="@digigov/ui/src/content/Card/__stories__/WithDarkBorder.tsx" />

### With grey top border

<code src="@digigov/ui/src/content/Card/__stories__/WithGrayTopBorder.tsx" />

### With dark top border

<code src="@digigov/ui/src/content/Card/__stories__/WithDarkTopBorder.tsx" />

### With divider

<code src="@digigov/ui/src/content/Card/__stories__/WithDivider.tsx" />

### With actions

<code src="@digigov/ui/src/content/Card/__stories__/WithGroupButton.tsx" />

### With title link

Cards can be used without an action button, but with a clickable title.

<code src="@digigov/ui/src/content/Card/__stories__/WithLink.tsx" />

### With clickable content

You can expand the clickable area of the link to fill Card's content.

<code src="@digigov/ui/src/content/Card/__stories__/WithClickableContent.tsx" />

### With button or link

Cards also provides styles for actionable elements such as Buttons or Links.

<code src="@digigov/ui/src/content/Card/__stories__/WithClickableLink.tsx" />

### With a group of actions

<code src="@digigov/ui/src/content/Card/__stories__/WithGroupButton.tsx" />

## API

See below for a complete reference to all of the props  available to the components mentioned here.

<ComponentProps componentName={["Card", "CardHeading", "CardContent", "CardAction"]} /> 
