Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-shortcut-key

Shortcut key

Free

One keyboard key drawn as a small bordered cap inline in hint text, naming a chord with its neighbours, for React and Tailwind CSS. Free, MIT.

Pick one key or a pair, or type keys of your own, a space or + between two: the keys sit in the sentence that names them. Pressing the keys does nothing here: the shortcut key only shows them.

When to use

  • One keyboard key drawn as a small bordered cap inline in hint text, naming a chord with its neighbours.
  • Also called: kbd or keyboard key.

Installation

Paste the prompt below into your coding agent. It reads Goop's install steps, installs the part and its tokens once, then reuses this same Shortcut key on every screen instead of drawing a new one: the same height, the same focus ring, the same spacing.

Terminal
npx shadcn@4.23.1 add @goop/trail-shortcut-key
PROMPT
Add the Goop Shortcut key to this project. The install steps are at https://goop.so/docs/install.md

Usage

TSX
import { ShortcutKey } from '@/components/ui/goop/shortcut-key';

<ShortcutKey>⌘K</ShortcutKey>
  • Fits: settings, states: body.
  • Also known as: Kbd.
  • width, padding, corner, border, text: add no class for these.

API reference

Options
OptionTypeWhat it does
asChild?boolean = falseRender the key's look on the one child element instead of a kbd.
  • data-slot values (to select a part by): shortcut-key

Notes for AI

Give your coding agent this page as text instead of screenshots: the parts, the options, the states and the keys. An agent that reads the real part builds the real part, not a lookalike.

goop.so/themes/trail/components/shortcut-key.md · the page as Markdown
Theme
Install with your agentnpx shadcn@4.23.1 add @goop/trail-shortcut-key

Where would you like to start?

Free · now

The Goop plugin

A design system for your AI coding agent, so screen ten matches screen one.

/plugin marketplace add goop-so/skillsthen /plugin install goop@goopCodex, Cursor, ChatGPT, the Claude app and more: Connect Goop
FreePro

The components

Every part live, with its props, its keys and what an agent sees. Whole page and app templates, working with sample data.