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
Label
Gives the label a distinct look.
import { Component } from '@angular/core';
import { HlmCheckboxImports } from '@spartan-ng/helm/checkbox';
import { HlmLabelImports } from '@spartan-ng/helm/label';
@Component({
selector: 'spartan-label-preview',
imports: [HlmLabelImports, HlmCheckboxImports],
template: `
<div>
<div class="flex items-center gap-2">
<hlm-checkbox id="terms" />
<label hlmLabel for="terms">Accept terms and conditions</label>
</div>
</div>
`,
})
export class LabelPreview {}Installation
ng g @spartan-ng/cli:ui label
npx nx g @spartan-ng/cli:ui label
Usage
import { HlmLabelImports } from '@spartan-ng/helm/label';<label hlmLabel>Label</label>Brain API
BrnLabel
Selector: [brnLabel]
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | `brn-label-${++nextId}` | - |
Helm API
HlmLabel
Selector: [hlmLabel]
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