usePressFeedback — Pressable Card
- from @astryx
- by Astryx
A Card made pressable with usePressFeedback: its marker and the interactionOverlayStyles backgroundImage overlay go straight on the Card, so a press darkens the card the way every Astryx pressable does; focusOutlineStyles.focusVisible gives it the shared Astryx focus ring for keyboard focus; and a click, Enter or Space flips it. Astryx replaced 1 demo content element with marked placeholders; put your own content there.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @astryx/example-use-press-feedback-pressable-cardRegistry dependencies0
The CLI adds no other registry items with this one.
