Kbd
kbduiInline keyboard-key indicator — renders a single key or shortcut in monospace with a subtle bordered chip.
Installation
$pnpm dlx uipkge-ng@latest add kbd$npx uipkge-ng@latest add kbd$yarn dlx uipkge-ng@latest add kbd$bunx uipkge-ng@latest add kbdManifest:
https://uipkge.dev/r/angular/kbd.jsonInstalls to:src/app/components/ui/kbd/Examples
Loading interactive previews…
Loading interactive previews…
Props
| Name | Type / Values | Default | Required |
|---|---|---|---|
class | string | — | optional |
Used by
Files installed (2)
src/app/components/ui/kbd/kbd.component.ts0.8 kB
import { Component, Input, ChangeDetectionStrategy } from '@angular/core' import { cn } from '@/lib/utils' /** * Angular port of UIPKGE Kbd. Standalone, signals-ready. * Pure presentational: inline keyboard-key chip with the registry classes — * identical to Vue. */ @Component({ changeDetection: ChangeDetectionStrategy.Eager, selector: 'ui-kbd, [ui-kbd]', standalone: true, host: { '[attr.data-slot]': '"kbd"', '[attr.data-uipkge]': '""', '[class]': 'hostClass', }, template: `<ng-content />`, }) export class UiKbdComponent { @Input('class') className?: string get hostClass(): string { return cn( 'bg-muted text-muted-foreground pointer-events-none inline-flex h-5 min-w-5 items-center justify-center gap-1 rounded border px-1.5 font-mono text-xs font-medium select-none', this.className, ) } }src/app/components/ui/kbd/index.ts0 kB
export { UiKbdComponent } from './kbd.component'
Raw manifest:https://uipkge.dev/r/angular/kbd.json