Skip to content
Playground

Clickable Card

A keyboard-accessible card that behaves as one action.

A keyboard-accessible card that behaves as one action.

Workspace

View project activity.

Audit log

Review security events.

Reports

Browse saved reports.

Compliance report

Available after the first scan.

Last opened: None

TSX
import { ClickableCard } from "@zentara-co/zenos-ui";

ClickableCard reuses the Card compound parts, including ClickableCard.Media. A visually hidden native button (or link when href is set) owns activation; clicking the card surface forwards to that control unless the event target is another interactive element.

TSX
<ClickableCard label="Open workspace" onClick={handleOpen}>  <ClickableCard.Media>{/* photo or video */}</ClickableCard.Media>  <ClickableCard.Header>    <ClickableCard.Title>Workspace</ClickableCard.Title>    <ClickableCard.Description>View project activity.</ClickableCard.Description>  </ClickableCard.Header></ClickableCard>

ClickableCard.Media uses the same inset frame as Card.Media. The card stays one action, so leave buttons out of the frame. A badge laid over the picture is decorative and still activates the card.

Living room with plants and a rust-colored chairBest seller

Interior kit

48 rooms, 6 moods, every one editable.

Mountain retreat

Media can close the card too.

Sunlit mountain valley above a green cliff

Last opened: None

variant accepts the same values as Card: default (neutral card fill), grey (accent gray subtlest fill), and white. White cards use background-default in light mode and match the default card’s background-neutral-card in dark mode. Hover and press use the active theme’s gray fills.

Disabled cards use muted background and border, opacity-50, and muted title and description text. They expose aria-disabled and cannot be activated.

The preview above shows default, grey, and white cards plus a disabled example.

Provide href when activation represents navigation. The hidden control becomes a native link with your label as its accessible name, while visible content keeps the Card layout.

Workspace documentation

Navigate using native link semantics.

Open the API reference on this page.

Add className on the root to define your own surface, border, and hover or active fills. Classes merge after the built-in interactive styles, so you can replace default hover colors with token-based utilities such as hover:bg-background-accent-teal-subtlest-hover.

Style ClickableCard.Title and ClickableCard.Description when the root uses a strong accent fill. Focus ring and keyboard activation behavior are unchanged.

Campaign workspace

Custom hover and press fills on the root replace the default neutral treatment.

Use ClickableCard for a single primary action or navigation target on the card surface. Use SelectableCard when users toggle or choose among options. Use Card for read-only content.

ClickableCard.Root
ClickableCard.Header
ClickableCard.Title
ClickableCard.Description
ClickableCard.Action
ClickableCard.Content
ClickableCard.Media
ClickableCard.Footer

API

PropTypeDefaultDescription
label string — Accessible name for the card's primary action.
href string — Uses native link semantics for the primary action.
onClick MouseEventHandler<HTMLElement> — Runs for pointer, Enter, and Space activation.
disabled boolean false Prevents activation and applies muted, reduced-opacity styling.
variant default | grey | white default Card surface; hover and press fills match the chosen variant.
className string — Merged last on the root. Override surface, border, and hover or active fills with semantic tokens.
native props React.HTMLAttributes<HTMLDivElement> — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

label names the card’s primary button or link for assistive technology. Use href for navigation and onClick for an action. Nested controls remain independently interactive and do not activate the card. Disabled cards expose aria-disabled and cannot be activated.