Data display

Card

A bordered surface that groups related content.

Class nameTypeDescription
cardplf:cardComponentA bordered surface
card-headerplf:card-headerPartThe title and description
card-titleplf:card-titlePartThe title
card-descriptionplf:card-descriptionPartThe description
card-bodyplf:card-bodyPartThe content
card-actionsplf:card-actionsPartA row of actions

Default

A card fills its container’s width, so size it with your layout.

This is some text within a card body.

Card title

Card description

Some quick example text to build on the card title.

Log in

Enter your email and password.

React

Card from @pelatform/react renders the card on a div, and each part is a component of its own; another element, such as an article, a form or a header, takes the class in className.

Part Element
CardHeader A div with card-header
CardTitle An h3 with card-title, or another heading with level
CardDescription A p with card-description
CardBody A div with card-body
CardActions A div with card-actions

Other props are the element’s own, className and ref included.

CSS variables

Override on a root or on a single card.

Variable Default
--plf-card-padding Space 6 (24px), on the header, body and actions
--plf-card-radius Extra large radius (12px)
--plf-card-bg, --plf-card-color Elevated surface and text
--plf-card-border --plf-color-border-subtle
--plf-card-shadow Small shadow

Lower the padding for a compact card.

A compact card.

Built with Pelatform UIv0.1.0

Components

Getting started

Foundations

Components

Actions

Data display

Navigation

Feedback

Data input

Layout

Advanced

Integrations

Blocks

Application

Authentication

Icons