Focus Ring
A button that reveals its focus indicator with :focus-visible rather than :focus. Tab to it and a ring appears; click it with the mouse and there is no ring. This is the right way to keep focus visible for keyboard users without the noise of a persistent ring after every click — and the reason authors should never just remove the outline.
Preview
Installation
npx shadcn@latest add https://ui.publictheta.com/r/focus-ring.jsonConformance
This component conforms to the @publictheta/ui-spec focus-ring specification. Run the suite against any implementation with pnpm conformance.