Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Focus Cards

ProNew

A group of cards where the one you point at stays sharp and the rest soften.

Installation

pnpm dlx shadcn@latest add @viewport/focus-cards

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Accessibility

  • Keyboard focus inside a card focuses it the same way hover does, and draws a focus ring around the card.
  • Skipped for touch, where there is no hover to leave.
  • No blur or scaling under reduced motion; the others only fade.