Zephora UI

Layout

Card

Surface container with outline, elevated and filled variants, four padding scales, optional click interactivity and Header/Body/Footer sections.

Import

import { Card, CardHeader, CardBody, CardFooter } from "@zephora/react";

Examples

Variants

Three surface styles for different levels of emphasis.

Outline
Elevated
Filled

Sections

CardHeader, CardBody and CardFooter structure the content. Use padding="none" on the Card so each section brings its own spacing.

Team plan
Unlimited projects, priority support and a shared component library.

Interactive

With `interactive` and an `onClick`, the card becomes focusable (role="button") and reacts to Enter/Space.

Clicked 0 times

API

Card props

PropTypeDefaultDescription
variant"outline" | "elevated" | "filled""outline"Visual style of the surface.
padding"none" | "sm" | "md" | "lg""md"Inner padding scale. Use "none" when composing sections.
interactivebooleanfalseHover shadow; combined with onClick the card becomes focusable (role="button", tabIndex 0) and Enter/Space trigger the click.
unstyledbooleanfalseHeadless mode — skips Zephora styling.
…restHTMLAttributes<HTMLDivElement>All native div props are forwarded.

CardHeader / CardBody / CardFooter props

PropTypeDefaultDescription
unstyledbooleanfalseHeadless mode — skips Zephora styling.
…restHTMLAttributes<HTMLDivElement>All native div props are forwarded.

Keyboard

KeyAction
Enter / SpaceActivates an interactive card that has an onClick handler.
TabMoves focus to and from an interactive card.