TwitterGithub

Toggle

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

Installation

npx nx g @spartan-ng/nx: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="radixFontItalic" />
</button>

Examples

Default

Outline

With Text

Small

Large

Disabled

Textarea