Skip to main content
Kaleidoscope

Card

Useful as a container to group related information and actions. Cards create a clear separation when displaying sets of grouped content.

Default

What you get out of the box with this component:

Editable example

Variants

We support two distinct variants for links and buttons.

Link

An anchor tag that is skinned to look like a card; useful for when you need clicking a card to link to a URL.

Editable example

It supports the following attributes from the anchor tag spec:

  • href
  • target
  • rel

Button

A button that is skinned to look like a card; useful for when clicking the entire card should perform an action.

Editable example

ButtonCard also supports the isDraggable prop to indicate it can be used in drag-and-drop contexts. Note that you will need to wrap the ButtonCard with a draggable element to support drag-and-drop, however.

Editable example

Elevation

Use elevation to place greater emphasis on a card. See the surfaces doc for more info. The maximum resting elevation is 2 to allow for the hover state on draggable cards to traverse to level 3.

Editable example

Theming

We also support a dark theme for all variants:

Editable example

Best practices

This component behaves very similarly to the Panel component, but Panels are designed specifically for floating content (menus, for example).