Browse components

Card

Container with four surface treatments, a padding step, and an optional clickable mode.

atoms 4 variants
Variants / states: defaultelevatedoutlinedflat

Live example

Default usage you can copy and adapt.

Basic Card

Simple card with title and content

Default Card

This is a default card with clean styling.

Elevated Card

This card indicates a successful action.

Outlined Card

This card shows a warning state.

Flat Card

This card indicates an error state.

Info Card

This card provides informational content.

Props

The props you are most likely to need, with types and defaults.

Props / API
NameTypeRequiredDefaultDescription
variantCardVariantNodefaultSurface treatment: default, elevated, outlined or flat.
sizeSizeVariantNomdPadding step. The corner radius does not change with it.
fullWidthbooleanNotrueFill the container's width.
onclick(event: MouseEvent) => voidNo—Makes the card clickable. Pair it with ariaLabel.
ariaLabelstringNo—Accessible name. Required when onclick is set.