import * as React from 'react'; import { SpinButton, ISpinButtonStyles, Position } from '@fluentui/react'; // By default the field grows to fit available width. Constrain the width instead. const styles: Partial = { spinButtonWrapper: { width: 75 } }; export const SpinButtonTopPositionExample: React.FunctionComponent = () => { return ( ); };