keyboard and code
The primitive key cap that other shortcut displays compose: one kbd per key, nested in an outer kbd for a combination, with named modifiers mapped to glyphs.
shadcn add @hazine/kbd
1 of 5 shipped. Each take is a different structure, and the note under its title says how.
1 item
keyboard and code
The primitive key cap that other shortcut displays compose: one kbd per key, nested in an outer kbd for a combination, with named modifiers mapped to glyphs.
shadcn add @hazine/kbd
Planned 4
Shortcut list
A structured reference built from a data array as grouped description lists, with a platform prop that swaps Command for Ctrl and a two-column layout on wide containers.
Code block with copy
Presentation shell that accepts plain or pre-highlighted code as children and ships no highlighter; line numbers are excluded from selection and copy, and the copy result is announced.
Install command tabs
One command in several dialects: a tablist switches the panel content, the choice syncs across every instance on the page, and the prompt symbol is excluded from the copied text.
Diff snippet
Line-level change semantics: additions and removals use ins and del with hidden 'added' and 'removed' text, a gutter sign and the success and destructive tokens, so the diff reads without colour.