Loading preview
Analog Clock
Data displayA station clock whose needle waits at twelve; drag the minute hand to set it by hand.
Keyboard keys and key combinations using the semantic kbd element.
npx shadcn@latest add @venusui/kbdRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/kbd.tsxThe code behind the preview above.
kbd-demo.tsx
import { Kbd, KbdCombo } from "@/components/ui/kbd"
export default function KbdDemo() {
return (
<div className="space-y-3 text-sm">
<p>
Press <KbdCombo keys={["⌘", "K"]} /> to open search.
</p>
<p>
Use <Kbd>↑</Kbd> <Kbd>↓</Kbd> to move and <Kbd>Enter</Kbd> to choose.
</p>
</div>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| raised | boolean | true | Kbd: thicker bottom border so it looks like a key. |
| keys | string[] | — | KbdCombo: keys in order, e.g. ["⌘", "K"]. |
Kbd accepts all <kbd> props.
⌘ or Ctrl in your own code.<kbd>; combinations nest keys inside an outer <kbd>, the HTML way to mark up key combos. The “+” is decorative.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A station clock whose needle waits at twelve; drag the minute hand to set it by hand.
Overlapping avatars with a +N counter that spread apart on hover.
Books on a wooden shelf whose spines lift on hover and pull out when selected, with a matching cover.