@fluentui/react-spinbutton
TypeScript icon, indicating that this package has built-in type declarations

9.2.76 • Public • Published

@fluentui/react-spinbutton

SpinButton component for Fluent UI React

SpinButtons are used to allow numeric input bounded between minimum and maximum values with buttons to increment and decrement the input value. Values can also be manipulated via the keyboard.

Usage

Import SpinButton:

import { SpinButton } from '@fluentui/react-spinbutton';

Examples

<SpinButton defaultValue={5}/>
<SpinButton value={value} onChange={onSpinButtonChange}/>

See Fluent UI Storybook for more detailed usage examples.

Alternatively, run Storybook locally with:

  1. yarn start
  2. Select react-spinbutton from the list.

Specification

See Spec.md.

Migration Guide

When upgrading to Fluent UI v9 see the upgrade guide for guidance on updating to the latest SpinButton implementation.

Readme

Keywords

none

Package Sidebar

Install

npm i @fluentui/react-spinbutton

Weekly Downloads

87,990

Version

9.2.76

License

MIT

Unpacked Size

296 kB

Total Files

53

Last publish

Collaborators

  • sopranopillow
  • microsoft1es
  • justslone
  • chrisdholt
  • miroslavstastny
  • levithomason
  • uifabricteam
  • uifrnbot
  • dzearing
  • layershifter
  • ling1726
  • travisspomer