Skip to content

Card

Content container for headings, text, links, and actions.

Browsers
Chrome 123+Firefox 121+Safari 17.5+
Tier
0
Bundle compressed
164 B
Forced layout budget
0 ms
Axe budget
0
SSR compatible
Yes
Published contract
Test harness

Playground

Card

Examples

API

Card

PropTypeDefaultDescription
childrenReactNode—Content of the part.
asElementType"div"Native element or component used for the root.
classNamestring—Class applied to the root element.
styleCSSProperties—Native root styles.
refRef<HTMLElement>—Ref forwarded to the rendered root element.
renderReactElement | ((props, state) => ReactElement)—Replace the rendered element while keeping behavior and accessibility wiring.

Keyboard

KeyAction

Accessibility

Groups related content without adding a role, focus target, or click behavior. Choose a semantic element such as article when the content warrants it; keep links and actions independent.

Styling hooks

data-uiify-card