Card - React
import { Card } from '@sky-uk/ui-core';
A container for content and/or actions. Also used as interaction control.
Props
$selected
boolean
$theme
Setting $theme
will render the Card
component with a trim along it's bottom edge.
$theme
takes the name of any predefined gradient.
disabled and readOnly
Interaction
The Card
component gains interactive cues with hover and focus effects when onClick
or href
are set.
Interactive Card
components (e.g. as='a'
or as='button'
) should not be nested, as this would
result in a compound transition of both Cards moving along, and would produce invalid HTML.
System Modifiers
The Card
component also supports the props applied using the following system modifiers: