import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import DetailsLayout from '../DetailsLayout'; import BrowserFrame from '../placeholders/BrowserFrame'; import SampleCode from '../SampleCode'; import useDocumentTitle from '../useDocumentTitle'; const StepperInput = () => { useDocumentTitle('CSS Layout ∙ Stepper input'); const [value, setValue] = useState(0); const decrease = () => setValue(value - 1); const increase = () => setValue(value + 1); const change = (e) => setValue(parseInt(e.target.value, 10)); return (

Stepper input

The content of minus and plus buttons are centered by using the technique in the Centering page.
} source={
`} /> } />
); }; export default StepperInput;