kbd
zard/kbdFreeComponent
@zard publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by @zard on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.zardui.com/r/kbd.jsonSource
1import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';23import type { ClassValue } from 'clsx';45import { mergeClasses } from '@/shared/utils/merge-classes';67import { kbdVariants } from './kbd.variants';89@Component({10 selector: 'z-kbd, [z-kbd]',11 template: `12 <kbd data-slot="kbd" [class]="classes()"><ng-content /></kbd>13 `,14 changeDetection: ChangeDetectionStrategy.OnPush,15 encapsulation: ViewEncapsulation.None,16 exportAs: 'zKbd',17})18export class ZardKbdComponent {19 readonly class = input<ClassValue>('');2021 protected readonly classes = computed(() => mergeClasses(kbdVariants(), this.class()));22}
Files it writes
More from @zard
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | @zard | Components | Free | no deps · 5 files | |
| alertalert | @zard | Components | Free | no deps · 3 files | |
| alert-dialogalert-dialog | @zard | Components | Free | no deps · 5 files | |
| avataravatar | @zard | Components | Free | no deps · 4 files | |
| badgebadge | @zard | Components | Free | no deps · 3 files | |
| breadcrumbbreadcrumb | @zard | Components | Free | no deps · 4 files | |
| buttonbutton | @zard | Components | Free | no deps · 3 files | |
| button-groupbutton-group | @zard | Components | Free | no deps · 3 files |
