- Implementation
- ArtifactCard API
Common Examples
Basic Usage
Render an artifact trigger with a title and description:Active State
Passactive while the corresponding ArtifactPanel is open so the card shows the elevated visual state:Pairing with ArtifactPanel
Wire the card’sonClick to the consumer state that drives an ArtifactPanel:React Accessibility
- The card renders as a
role="group"wrapping an interactive button via Anvil2’sInteractiveCard. The whole surface is clickable. - The
titleis used for both the wrapper’saria-labeland the action button’saria-label(prefixed with “View ”). artifactIdis emitted asdata-artifact-idfor analytics and event wiring; it is not announced to assistive technology.