Use min, max and step to define the accepted scale and keep min below max. size is the diameter in pixels; showValue hides only the visual number. Give the control an accessible name and use valueText when the numeric value needs units.
These inputs require a model or function, not a checkbox. Edit the same-named field in the Source component and bind it in the template; data already used by this preview appears in the state above.
Use min, max and step to define the accepted scale and keep min below max. size is the diameter in pixels; showValue hides only the visual number. Give the control an accessible name and use valueText when the numeric value needs units.
Inputs, models and Outputs are extracted from the installed Core package. Named public types link to their definitions. Templates below include executable examples.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
Name
Type
Default
Template binding
Description
ariaDescribedBy
string
''
[ariaDescribedBy]
IDs of elements describing the control, separated by spaces.
ariaLabel
string
''
[ariaLabel]
Accessible name of the control or region.
dirty
boolean
false
[dirty]
Form state indicating that the user has changed the value.
disabled
boolean
false
[disabled]
Prevents interaction with this control.
errors
readonly ValidationError.WithOptionalFieldTree[]
[]
[errors]
Validation errors supplied by the form or the application.
Stable control id, generated when omitted; use it to associate labels or descriptions.
invalid
boolean
false
[invalid]
Displays the invalid state; it does not add a validation rule.
label
string
''
[label]
Visible label naming the field or action.
max
number | undefined
100
[max]
Upper numeric bound.
min
number | undefined
0
[min]
Lower numeric bound.
name
string
''
[name]
Name of the form control.
pending
boolean
false
[pending]
Form state indicating that asynchronous validation is pending.
readonly
boolean
false
[readonly]
Keeps the applied value visible but prevents user edits.
required
boolean
false
[required]
Marks the field as required; use a form validator to enforce it.
showValue
boolean
true
[showValue]
Shows the numeric value inside the knob.
size
number
80
[size]
Control diameter in pixels.
step
number
1
[step]
Positive increment used when adjusting the numeric value.
touched
boolean
false
[touched]
Form state indicating that the control has been visited.
valueText
((value: number) => string) | undefined
undefined
[valueText]
Function that converts the numeric value to accessible text, such as a value with units.
Models
A model supports [(property)]="signal" or the [property] and (propertyChange) pair. Choose one form, not both.
Name
Type
Default
Template binding
Description
value
number
0
[(value)]
Applied numeric value within the configured range.
Outputs
Listen to an event with (event)="handler($event)". The table explains the data your handler receives and how to use it.
Name
Payload
Template binding
Description
touch
void
(touch)="onTouch($event)"
Notifies the form that the control has been touched; not a value change.
Templates
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
This component does not expose content projection or public customization templates.
Use the supported public tokens listed below. Surrounding layout belongs to your application; validate the result in light and dark modes and narrow containers.
Specific tokens
Token
Purpose
State / variant
Default / source
Fallback
--neu-knob-display-color
Inherited theme value used by this component
Field surface
var(--neu-text)Root declaration
--neu-text
--neu-knob-label-color
Inherited theme value used by this component
Field surface
var(--neu-text-muted)Root declaration
--neu-text-muted
--neu-knob-track
Inherited theme value used by this component
Field surface
var(--neu-surface-3)Root declaration
--neu-surface-3
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-focus-ring
Normal keyboard-focus ring
Shared by other Core consumers; scope the override.