Card
Import
import Card from '@govuk-frederic/card';
Usage
Simple
<Card>Example</Card>
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
accentColor |
undefined |
string | color for bottom border accent | |
backgroundColor |
WHITE |
string | color for the background | |
centered |
false |
bool | flag to indicate content should be centered | |
children |
true | `````` | node | |
topBorder |
false |
bool | flag to indicate that top of the card should have a single-pixel grey border |