Number Input
A numeric input with increment and decrement buttons.
Loading...
import { NumberInput } from "@/components/ui/number-input"
export function NumberInputDemo() {Installation
pnpmnpmyarnbun
Usage
import { NumberInput } from "@/components/ui/number-input"<NumberInput defaultValue={5} min={0} max={100} />Examples
With Step
Use the step prop to control the increment/decrement amount.
Loading...
import { NumberInput } from "@/components/ui/number-input"
export function NumberInputStep() {Controlled
Control the value with value and onChange.
Loading...
"use client"
import * as React from "react"Disabled
Loading...
import { NumberInput } from "@/components/ui/number-input"
export function NumberInputDisabled() {