Card
A container for related content in three forms: static, pressable or a link.
import { Card } from '@windmorph/react';Purpose
A card groups related content and actions about a single subject. Reach for a card when a block of content needs its own surface; for a simple divider between sections use a Divider, and for a list of short items use a List.
Cards come in three forms. A static card is a plain container that holds its own buttons and links. A pressable card (onPress) or a link card (href) makes the whole surface one target, so it must not contain other interactive content.
When not to use
For a plain row of text use a List item; for full-screen content a card adds no value.
See also
- Card on m3.material.io: Material's own guidelines, with anatomy and specs.
- List: Rows with headline, overline, supporting text and leading or trailing content (icons, avatars, images, video thumbnails); items can be links, switches, checkboxes or radio buttons, and put in order by drag or a menu.
- Carousel: A scrollable row of items that resize along keylines: multi-browse, uncontained, multi-aspect, hero or full-screen.
- Dialog: A modal surface for a focused task or a decision, with a title, content and actions, or full screen on compact windows.