Back to gallery

Card

Tile presentations

The eight presentations with an icon, a title and a description. Hover each to see its hover background, except compact-row, which has none. The row and directory-row examples have an onClick, which their hover background needs.

card
Card
Border and padding of the default tile.
catalog
Starter template
New
A short description that wraps to at most three lines.
featured
Featured item
Larger padded surface variant.
ranked
Ranked item
Ranked list entry
related
Related item
Related list entry
row
Row
Pill row
directory-row
Directory row
Rounded row
compact-row
Compact row
One line description

No row pressed yet

Button, disabled and link tiles

A tile with onClick is a button: Tab reaches it, Enter and Space on the tile itself click it, and a key pressed in a nested control does not. A disabled tile keeps role=button with aria-disabled and does nothing. A tile with `to` is covered by a link; the badge and the action button stay above it.

onClick: button semantics
Clickable tile
Clicked 0 times
onClick with a nested action button
Tile with an action
No link event yet
disabled
Disabled tile
Handlers are removed
Not interactive
Static tile
No onClick and not disabled: tabIndex -1, no role
to: full-bleed link
Linked tile
Link
No link event yet
to with disabled: no link
Disabled linked tile
The overlay link is not rendered
isHighlighted
Highlighted tile
Search result background and data-ck-search-result-active
tooltip
Tile with a tooltip
Hover or focus for the tooltip

Tile slots

Icon container variants and placements, description placement, action placement, badges that are strings or nodes, and the trailing slot.

iconContainerVariant: outline
Outline container
Outlined icon container
iconContainer: false
No container
The icon sits in a bare span
iconPlacement: inline
Inline icon
The icon moves into the title row
descriptionPlacement: inline
Inline description
The description is truncated beside the title column
actionsPlacement: center
Centered actions
Actions sit right of the text block
actionsPlacement: top, badges and trailing
Top actions
Beta
String badges are pills, nodes render as they are
Trailing
descriptionClassName: no clamp
Description override
A long description that would be clamped to three lines by default, but the override lets it show on every line of the text without a limit, however many that takes.
Long title truncates
A very long title that does not fit in the available width of the tile and is cut off
The title is truncated to one line
compact-row with actions
A compact row title that wraps at word breaks when it is long
Single line description that is truncated

Suggestion cards

Suggestion cards are buttons named by their label and described by their description. The shortcut hint sits top right. A disabled card is dimmed.

Picked: None

compact
compact, no description
compact, disabled
illustrated
illustrated with a shortcut
tooltipContent

Document, reference and status

The document card header, the content reference card, the status indicator and the writing block surface.

DocumentCard with default icon
Document title

Content below the header.

DocumentCard with an icon and a long title
A very long document title that is cut off before it reaches the actions

Content below the header.

ContentReferenceCard with a title
Reference title
Reference content.
ContentReferenceCard without a title
Reference content.
CardStatusIndicator
Complete
WritingBlockSurface

Surface content with the border layer above it.

Comment card and composer

Comment cards in the default and inline surfaces, with a clickable header, a body and a footer, and the composer in its inline and card layouts.

No comment event yet

default surface, header click
Comment body text.
Footer
inline surface
Comment body text.
headerLayout: truncate, no body
composer inline in the footer
Reply below.
Footer with an inline composer surface
CommentComposer inline
Write a comment
CommentComposer card layout
Write a comment
loading
Sending
disabled
Disabled
showSubmit: false keeps the slot
No submit button

Right to left

The same tiles in a right-to-left container.

Tile
عنوان البطاقة
جديد
وصف قصير يظهر في سطر واحد
Suggestion

Light and dark

Each panel sets its own theme scope, so the appearance control above does not change them. The two lower panels nest the opposite theme inside, and the nested parts follow the nearest scope.

Light theme

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.

Dark theme

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.

Dark theme, with a light panel inside

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.

Light theme, nested in dark

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.

Light theme, with a dark panel inside

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.

Dark theme, nested in light

Tiles
Catalog
New
A short description
Featured
Featured surface
Disabled
Disabled
Suggestion and document
Document title

Content.

Reference
Content.
Comment body.