Focus Halo

A keyboard-visible glow for primary controls.

Installation

pnpm dlx shadcn@latest add @ward/focus-halo

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/focus-halo.json

Usage

import FocusHalo from "@/components/ward/FocusHalo";
<FocusHalo variant="Bright" />

Props

PropTypeDefaultDescription
variant"Soft" | "Bright""Soft"Strength of the focus ring drawn around the button.

Ward · Version 1.1.0 · Registry manifest