Card

A common container component.

General

The basic Card usage.

Hoverable

You can apply a fancy hover animation with the hoverable prop.

Bordered

You can apply a fancy hover animation with the bordered prop.

Shadow

You can apply shadow with the shadow prop.

Types

Show different states with colors.

You can use the Card.Footer component to add actions, details or another information to the Card.

With Image

You can use the Image component to add an image to the Card.

With Divider

Show different types of content using Divider.

Spotlight

The spotlight prop adds a glow that follows the pointer. It uses the card text color, so it fits every type.

Glass

The glass prop makes the background translucent with a blur. Use it over images or gradients.

Interactive

The interactive prop makes the card behave like a button: pointer cursor, lift on hover and a visible focus ring for keyboard users.

Metric

A compact card for a number and its trend.

Pricing

Highlight the recommended plan with filled and spotlight, and keep the others quiet.

Profile

A person with their contact and the two actions people take next.

APIs

Card.Props

AttributeDescriptionTypeAccepted valuesDefault
hoverableadd effect on hoverboolean-false
shadowshow shadowboolean-false
typecard typeCardType-default
filledfilled variant, solid backgroundboolean-false
ghostoutline variant, always shows a borderboolean-false
subtlesubtle variant, no backgroundboolean-false
spotlightglow that follows the pointer on hoverboolean-false
glasstranslucent background with blurboolean-false
interactivepointer cursor, lift on hover and focus ringboolean-false
...native propsHTMLAttributes'id', className', ...-

Card.Content.Props[alias: Card.Body]

AttributeDescriptionTypeAccepted valuesDefault
...native propsHTMLAttributes'id', className', ...-

Card.Footer.Props[alias: Card.Actions]

AttributeDescriptionTypeAccepted valuesDefault
disableAutoMargincancel automatic margin valueboolean-false
...native propsHTMLAttributes'id', className', ...-

CardType

type CardType =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'
  | 'dark'
  | 'lite'
Edit this page on GitHub