Skip to main content

Usage

Assemble the radio directives in your template.

API Reference

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

NgpRadioGroupDirective

string | undefined
Define the selected value.
boolean
default:"false"
Define the disabled state.
'vertical' | 'horizontal'
default:"horizontal"
Define the orientation.
boolean
Event emitted when the selection changes.

NgpRadioItemDirective

string
required
Define the value of this item.
boolean
default:"false"
Define the disabled state.

NgpRadioIndicatorDirective

There are no inputs or outputs for this directive.

Schematics

You can use our schematic to generate a new checkbox 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.