Outlook_Addin_LLM/node_modules/@fluentui/react-spinbutton
2024-11-29 21:36:41 +01:00
..
dist First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
lib First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
lib-commonjs First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
CHANGELOG.md First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
LICENSE First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
package.json First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00
README.md First version with simple frontend and Compose Email by AI 2024-11-29 21:36:41 +01:00

@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.