Selectable Card @astryx-svelte/core v0.3.0 · SelectableCard

Usage

A card that toggles between selected and unselected states with an accent border. For navigation use ClickableCard.
ts
import { SelectableCard } from '@astryx-svelte/core';

Best practices

GuidancePractices
DoUse for plan pickers, filter chips, or option grids.
DoFor single-select track one ID; for multi-select use a Set.
DoWhen focused, toggle selection with Space or Enter.
Don'tUse for navigation; use ClickableCard for that.

Examples

Common configurations, variations, and states.
SelectableCard — Elevated
Raised selectable cards with elevation="low". The inset selection ring composes on top of the shadow, so a selected card keeps its elevation.
SelectableCardMulti
Multi-select tag picker using color variant selectable cards with color-matched selection borders.