enes

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

NameTypeDescription
valuenumberThe current value of the NumberBox.
variant'inline' \| 'compact'The visual style of the NumberBox, e.g., 'inline', 'compact'.
refHTMLInputElementThe DOM reference to the input element.
TextBox PropsAdditional props inherited from the TextBox component.