Spartans get ready! v1 is coming!
We are very close to our first stable release. Expect more announcements in the coming weeks. v1 was made possible by our partner Zerops.
Getting Started
Stack
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
- Form Field
- Hover Card
- Icon
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Label
- Menubar
- 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
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 space-x-2">
<hlm-checkbox id="terms" />
<label hlmLabel for="terms">Accept terms and conditions</label>
</div>
</div>
`,
})
export class LabelPreview {}Installation
npx nx g @spartan-ng/cli:ui label
ng 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 | - | - |