# Number Input > A numeric input with decrease and increase buttons, limits and a step. Source: https://shellui.dev/docs/v0.4/components/form/number-input `NumberInput` is **new in v0.4**. It binds a `decimal?`, steps it with - and + buttons, and keeps it between `Min` and `Max`. ## Installation ```bash shellui add number-input ``` ## Usage ### Basic ```razor

Quantity: @quantity

@code { private decimal? quantity = 1; } ``` ### Min and max The buttons disable at the limits, and typed values are clamped. ```razor

@guests of 8 guests

@code { private decimal? guests = 2; } ``` ### Step `Step` is a `decimal`, so write fractions with the `m` suffix. ```razor

Opacity: @opacity

@code { private decimal? opacity = 0.5m; } ``` ### Disabled ```razor ``` ## API Reference | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `Value` | `decimal?` | `null` | The current value; use `@bind-Value` | | `ValueChanged` | `EventCallback` | - | Fires when the value changes | | `Min` | `decimal?` | `null` | Lowest allowed value | | `Max` | `decimal?` | `null` | Highest allowed value | | `Step` | `decimal` | `1` | Amount added or removed by the buttons | | `Disabled` | `bool` | `false` | Disables the input and both buttons | | `Class` | `string?` | `null` | Additional CSS classes | ## Accessibility - A native `` with `inputmode="decimal"`, so the arrow keys and mobile number keyboards work - The buttons are labelled "Decrease" and "Increase"