Number Box
The NumberBox component allows users to input numeric values with specified constraints such as minimum, maximum, and step values.
Usage
<script>
import { NumberBox } from 'fluentui-svelte';
</script>
<NumberBox value={0} min={0} max={100} step={1} /> Component API
A brief explanation of the props that really need explaining. You can see the rest of the props here .
Variant
The variant prop determines the visual style of the NumberBox.
Component Props
| Name | Type | Description |
|---|---|---|
value | number | The current value of the NumberBox. |
variant | 'inline' \| 'compact' | The visual style of the NumberBox, e.g., 'inline', 'compact'. |
ref | HTMLInputElement | The DOM reference to the input element. |
| TextBox Props | Additional props inherited from the TextBox component. |
