ActionCard
An ActionCard is a molecule meant for use inside the new Dashboard experience. This component is made up of multiple Coral atoms and allows a user to navigate to a new page with more visual context than a regular Button.
Basic usage
import { ActionCard } from '@krakentech/coral-molecules';
<ActionCard>
<Typography textStyle="h5" component="span">
Title
</Typography>
<Typography component="span">Subtitle</Typography>
</ActionCard>Properties
actionIcon
The actionIcon prop supports ReactNode, which should be an icon or an illustration from @krakentech/icons or @krakentech/coral-media, respectively. It replaces the default right chevron if passed.
<ActionCard actionIcon={<IconArrowRight size={36} color="green" />}>
<Typography textStyle="h5" component="span">
View my latest bill
</Typography>
<Typography component="span">Ā£24.50 for 11 Apr to 12 May</Typography>
</ActionCard>hideActionIcon
<ActionCard hideActionIcon>
<Typography textStyle="h5">Title</Typography>
<Typography>Subtitle</Typography>
</ActionCard>href
<ActionCard href="https://octopus.energy">
<Typography textStyle="h5" component="span">
Title
</Typography>
<Typography component="span">Subtitle</Typography>
</ActionCard>icon
The icon prop supports ReactNode, which should be an icon or an illustration from @krakentech/icons or @krakentech/coral-media, respectively.
<ActionCard icon={<IconBill size={36} />}>
<Typography textStyle="h5" component="span">
View my latest bill
</Typography>
<Typography component="span">Ā£24.50 for 11 Apr to 12 May</Typography>
</ActionCard>theme
<ActionCard theme="base900">
<Typography textStyle="h5" component="span">
Dark
</Typography>
</ActionCard>
<ActionCard theme="base100">
<Typography textStyle="h5" component="span" color="contentsBase100">
Light
</Typography>
</ActionCard>
<ActionCard theme="base500">
<Typography textStyle="h5" component="span">
Mid
</Typography>
</ActionCard>
<ActionCard theme="secondary900">
<Typography textStyle="h5" component="span">
Mid light
</Typography>
</ActionCard>
<ActionCard theme="tertiary100">
<Typography
textStyle="h5"
component="span"
color="contentsTertiary100"
>
Tertiary light
</Typography>
</ActionCard>Event Handling
<ActionCard onClick={() => {}}>...</ActionCard>Full API
Last updated on