A rotary dial for selecting a numeric value along a 270° arc. Drag the pointer or use arrow keys. Integrates with Angular Forms via [(ngModel)] / formControlName.
Unlock it plus 90 pro blocks, widgets & layouts — $99 one-time. Lifetime updates, 14-day money-back guarantee.
Bind with [(ngModel)]. Use color for the accent and showValue to display the number in the center.
Primary · 65
Success · 40
Danger · 80
Control the range with min, max, and step. Use size for dial diameter (sm / default / lg).
sm · 22°C
default · 22°C
lg · 22°C
Set [disabled]="true" to prevent interaction.
Run the following command to add this component to your project:
npx base-ui-cli add knob
For AI agents
Copy a prompt with the registry name, CLI install, and import — or add the Base UI MCP server.
npx -y base-ui-mcp
Base UI provides standalone components. Import the exact elements you want to use into your component.
// Install: npx base-ui-cli add knob
// Paths are relative to aliases.components (default: src/app/components)
import { KnobComponent } from './knob/knob.component';
@Component({
selector: 'app-your-component',
imports: [
KnobComponent
],
template: `...`
})
export class YourComponent {} API for knob — generated from JSDoc in the library source.
| API | Member | Type | Default | Description |
|---|---|---|---|---|
base-knob | class | string | '' | Extra host classes merged via `cn()`. |
base-knob | min | number | 0 | Minimum value. |
base-knob | max | number | 100 | Maximum value. |
base-knob | step | number | 1 | Step increment for drag and keyboard. |
base-knob | color | SliderColor | 'primary' | Semantic track / value color. |
base-knob | size | KnobSize | 'default' | Dial diameter size. |
base-knob | showValue | boolean | false | Shows the current value in the center of the dial. |
base-knob | disabled | boolean | false | Whether the control is disabled (consumer-facing input). |
base-knob | ariaLabel | unknown | 'Knob' | Accessible name for the slider. |
base-knob | (valueChange) | number | — | Emitted whenever the value changes. |
Content