Skip to main content

Usage

Assemble the toggle directives in your template.

API Reference

The following directives are available to import from the @ng-primitives/ng-primitives/toggle package:

NgpToggleDirective

There are no inputs or outputs for this directive.

Global Configuration

You can configure the default options for all toggles in your application by using the provideNgpToggleConfig function in a providers array.

NgpToggleConfig

Schematics

You can use our schematic to generate a new toggle component.

Options

string
The name of the component.
string
The name of the project to add the component to.
string
The path to create the component.