Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (21 loc) · 395 Bytes

NumberInput.md

File metadata and controls

25 lines (21 loc) · 395 Bytes

NumberInput

import {NumberInput, NumberInputControls} from 'rea11y';

function handleChange(value) {}

<NumberInput
	value={42} // required
	min={0}
	max={100}
	step={1}
	bigStep={10}
	onChange={handleChange}
/>

<NumberInput {...props}>
	<NumberInputControls
		incrementText="▲"
		decrementText="▼"
		incrementTitle="Increment"
		decrementTitle="Decrement"
	/>
</NumberInput>