Stop Rebuilding UI

Shadcn.io is not affiliated with official shadcn/ui

Button with Kbd

An outline button with keyboard shortcut display combining border styling with command key visibility

Borders teach shortcuts—outline buttons surface power-user commands. This React outline button combines shadcn/ui's border-only styling with the Kbd component displaying keyboard commands like ⌘K or Ctrl+S within bordered secondary actions. Built with gap-2 spacing maintaining subtle visual hierarchy while educating users on efficient workflows, it creates discoverable shortcut patterns. Perfect for "Settings ⌘," in application menus where outline signals optional navigation, "Search ⌘K" in secondary toolbars requiring clear shortcut visibility without primary emphasis, or "Toggle Sidebar ⌘B" in IDE-like interfaces teaching keyboard efficiency—the bordered shortcut combination maintains secondary action hierarchy while surfacing power-user features.

Button with Kbd preview

Scroll to load preview

Installation

FAQ

Was this page helpful?

Sign in to leave feedback.