Components

Card

List item container for a task card

Overview

Card is the container of a list item. It renders as a <li> element with fixed card styles.

  • Container, not a button — a card holds inputs and selectors, so it has no role="button" and does not take focus. Border on hover
  • Opening — clicking an empty area calls onClick as a mouse shortcut. Keyboard users do the same through the controls inside and the card's context menu (Shift+F10 or the Menu key on any control inside opens it under that control)
  • Fixed props — takes onClick, maxWidth, className and children only
  • Fixed styles — White background, rounded corners, drop shadow

Basic Usage

  • Write the weekly report

    Summarize what shipped and what is blocked.

Width Control

The Basic Usage example above sets maxWidth="480px".

Props

PropTypeDefaultRequiredDescription
onClickMouseEventHandler<HTMLElement>-YesCalled when an empty area of the card is clicked with a mouse (a shortcut). Keyboard users do the same through the context menu
maxWidthstring | number-NoMaximum width
classNamestring-NoExtra CSS class
childrenReactNode-YesCard content

Specification

base

상태요소속성값
enabledrootpadding$size.space.600
enabledrootgap$size.space.400
enabledrootborderRadius$size.radius.200
enabledrootbackgroundColor$color.background.default.default
enabledrootborderWidth$size.stroke.border
enabledrootborderColor$color.background.default.default
hoverrootborderColor$color.border.default.default

Guidelines

  • Always use Card inside a <ul> or <ol> (renders as <li>)
  • If you need a non-clickable container, use Box directly