Getting Started
Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Dropdown Menu
- Empty
- Field
- Form Field
- Hover Card
- Icon
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner (Toast)
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
Stack
Skeleton
Use to show a placeholder while content is loading.
import { Component } from '@angular/core';
import { HlmSkeletonImports } from '@spartan-ng/helm/skeleton';
@Component({
selector: 'spartan-skeleton-preview',
imports: [HlmSkeletonImports],
template: `
<div class="flex items-center space-x-4">
<hlm-skeleton class="size-12 rounded-full" />
<div class="space-y-2">
<hlm-skeleton class="h-4 w-[250px]" />
<hlm-skeleton class="h-4 w-[200px]" />
</div>
</div>
`,
})
export class SkeletonPreview {}Installation
ng g @spartan-ng/cli:ui skeleton
npx nx g @spartan-ng/cli:ui skeleton
Usage
import { HlmSkeletonImports } from '@spartan-ng/helm/skeleton';<hlm-skeleton class="h-[20px] w-[100px] rounded-full" />Examples
Card
import { Component } from '@angular/core';
import { HlmSkeletonImports } from '@spartan-ng/helm/skeleton';
@Component({
selector: 'spartan-skeleton-card',
imports: [HlmSkeletonImports],
template: `
<div class="flex flex-col space-y-3">
<hlm-skeleton class="h-[125px] w-[250px] rounded-xl" />
<div class="space-y-2">
<hlm-skeleton class="h-4 w-[250px]" />
<hlm-skeleton class="h-4 w-[200px]" />
</div>
</div>
`,
})
export class SkeletonCard {}Helm API
HlmSkeleton
Selector: [hlmSkeleton],hlm-skeleton
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| class | ClassValue | - | - |
On This Page
Stop configuring. Start shipping.
Zerops powers spartan.ng and Angular teams worldwide.
One-command deployment. Zero infrastructure headaches.
Deploy with Zerops