TrademarkTrademark
Docs
Ctrl k
Search docs...
Components

Card

Updated: July 27, 2026
View on GitHub

The Card component is a versatile, fluid container for content with a hover effect. It handles click events and href attributes.

Selected

Use selected to mark the chosen card in a set — a plan picker, a template gallery, a multi-select list. It repaints the border and background from the brand scheme, and a card that is also clickable announces the state as a pressed toggle. Both colours are defaults, so passing background or border still wins.

API reference

Type
Default
children
React.ReactNode—
href
Makes it a link.
string—
onClick
Makes it a button. Without either, it is a static panel and a Column may suit better.
() => void—
fillHeight
Fill the parent's height, for cards that should match in a row.
boolean—
selected
Mark as the chosen one in a set. Repaints the border and background, and announces a clickable card as a pressed toggle.
boolean—
style
React.CSSProperties—
className
string—
…and every FlexProps propinherited—
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club