Skip to main content

Card

Card components can be used either via dot-notation (Card.Title) or using the components directly (CardTitle).

Implementation#

import { Card, Button } from "slipstream-ui";
const Example = () => (
<Card>
<Card.Header>
<Card.Title>Card Title</Card.Title>
</Card.Header>
<Card.Body>
<p>Card body</p>
</Card.Body>
<Card.Footer className="justify-between">
<Button color="red">Delete</Button>
<Button color="blue">Submit</Button>
</Card.Footer>
</Card>
);

Example#

Card Title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi vitae est tempor, sollicitudin purus non, placerat ipsum. Proin ipsum enim, suscipit eu pharetra nec, facilisis sit amet lectus. Donec enim orci, bibendum eu mattis vel, tempus vitae massa. Morbi urna nunc, accumsan molestie eleifend at, commodo in leo

Card Props#

AttributeTypeValueDefault ValueDescription
sizestringsm/md/lgChanges padding, button, and title size

Card Header Props#

AttributeTypeValueDefault ValueDescription
sizestringsm/md/lgChanges header padding

Card Title Props#

AttributeTypeValueDefault ValueDescription
sizestringsm/md/lgChanges title size and padding

Card Body Props#

AttributeTypeValueDefault ValueDescription
sizestringsm/md/lgChanges body padding

Card Footer Props#

AttributeTypeValueDefault ValueDescription
sizestringsm/md/lgChanges button size and footer padding