Clickable Card @astryx-svelte/core v0.3.0 · ClickableCard

Usage

An interactive card for navigation or action targets. Nested interactive elements work independently.
ts
import { ClickableCard } from '@astryx-svelte/core';

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.

Examples

Common configurations, variations, and states.
ClickableCard — Elevated
A clickable card raised with elevation="med" so the shadow signals the whole surface is interactive.
ClickableCardWithNestedButton
A product card that navigates on click but has an independent "Add to cart" button inside.