TwitterGithub

Switch

A control that allows the user to toggle between checked and not checked.

Installation

npx nx g @spartan-ng/nx:ui switch

Usage

import { BrnSwitchComponent, BrnSwitchThumbComponent } from '@spartan-ng/ui-switch-brain';
import { HlmSwitchDirective, HlmSwitchThumbDirective } from '@spartan-ng/ui-switch-helm';
<brn-switch hlm>
  <brn-switch-thumb hlm />
</brn-switch>
Textarea Skeleton