skeleton
zard/skeletonFreeComponent
@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/skeleton.jsonSource
1import { ChangeDetectionStrategy, Component, computed, input, ViewEncapsulation } from '@angular/core';23import type { ClassValue } from 'clsx';45import { mergeClasses } from '@/shared/utils/merge-classes';67import { skeletonVariants } from './skeleton.variants';89@Component({10 selector: 'z-skeleton',11 template: `12 <div data-slot="skeleton" [class]="classes()"></div>13 `,14 changeDetection: ChangeDetectionStrategy.OnPush,15 encapsulation: ViewEncapsulation.None,16 host: {17 class: 'block',18 },19 exportAs: 'zSkeleton',20})21export class ZardSkeletonComponent {22 readonly class = input<ClassValue>('');2324 protected readonly classes = computed(() => mergeClasses(skeletonVariants(), this.class()));25}
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 |
