Collection of theme-ui and external components.
created:3/15/2021
updated:3/15/2021
source lines:5
comments %:0

Card

Card style variants can be defined in the theme.cards object. By default the Card component uses the theme.cards.primary variant.

Overview

Card

({ maxWidth, src, text }) => (
<Card sx={{ maxWidth, bg: 'background' }}>
<Image src={src} />
<Text>{text}</Text>
</Card>
)

Controls

Name
Description
Default
Controls
maxWidth
number
252
src
text
https://picsum.photos/id/1084/128/128
text
text
Card

A11y tests

Card

Viewport

Card
320px

Card
375px

Card
768px

Card
1024px