Number input
Last updated: 2.0.0 (18/01/2024)
Usage
import { NumberInput } from "@valence-ui/core";
function MyComponent() {
const [value, setValue] = React.useState(0);
return (
<NumberInput
value={value}
setValue={setValue}
/>
)
}Min, max & step
import { NumberInput } from "@valence-ui/core";
function MyComponent() {
const [value, setValue] = React.useState(4);
return (
<NumberInput
value={value}
setValue={setValue}
min={0}
max={10}
step={2}
/>
)
}Hiding or modifying controls
Props
Property
Type
Description
Last updated