TwitterGithub

Toggle

A two-state button that can be either on or off.

Installation

npx nx g @spartan-ng/cli:ui toggle

Usage

import { HlmToggleDirective } from '@spartan-ng/ui-toggle-helm';
import { BrnToggleDirective } from '@spartan-ng/ui-toggle-brain';
<button brnToggle hlm>
  <hlm-icon size="sm" name="lucideItalic" />
</button>

Examples

Default

Outline

With Text

Small

Large

Disabled

Tooltip Textarea