Button
Displays a button or a component that looks like a button.
Default
The standard button component.
button-example-default.ts
Variants
Use the variant input to change the button style.
button-example-variants.ts
Sizes
Buttons come in different sizes to fit your UI needs.
button-example-sizes.ts
With Icons & States
Integrate icons or display loading states using spinners.
button-example-icons.ts
As Link
Use the hlmBtn directive on anchor tags for navigation.
button-example-link.ts
Installation & Usage
Installation
Imports
Basic Skeleton
API Reference
Helm API
The button directive provides the default spartan/ui styling.
| Directive | Selector | Inputs |
|---|---|---|
| HlmButton | button[hlmBtn], a[hlmBtn] |
|