XDSClickableCard@xds/core · ClickableCard
Preview coming soon

Usage

An interactive card for navigation or action targets. Nested interactive elements work independently.

Best practices

GuidancePractices
DoUse for cards that navigate to a detail page or trigger a single action.
DoNest buttons or links freely inside — they handle their own events.
Don'tUse for toggling selection — use SelectableCard for that.

Anatomy

ElementDescription
ContainerrequiredInteractive div with hover/focus/active states.
ContentrequiredChildren, which may include nested interactive elements.

Import

ts
import {XDSClickableCard} from '@xds/core/ClickableCard'

Props

PropTypeDescription
labelrequired
stringAccessibility label.
onClick
(event: MouseEvent) => voidClick handler — fires on card surface only.
href
stringNavigation URL.
target
string (default: '_self')Link target.
isDisabled
boolean (default: false)Disables the card.
children
ReactNodeCard content.
padding
SpacingStep (default: 4)Inner padding.
variant
'default' | 'transparent' | 'muted' | 'blue' | 'cyan' | 'gray' | 'green' | 'orange' | 'pink' | 'purple' | 'red' | 'teal' | 'yellow' (default: 'default')Background color variant.
width
SizeValueCard width.
height
SizeValueCard height.
maxWidth
SizeValueMaximum card width.