"use client"
import { NumberField } from "@/components/ui/preskok-ui/number-field"
export function NumberFieldPreskokDemo() {
return (
<div className="space-y-4">
<NumberField
label="Quantity"
defaultValue={1}
minValue={0}
maxValue={10}
/>
<NumberField label="Price" prefix="$" defaultValue={9.99} />
</div>
)
}
Installation
CLI
Manual
pnpmnpmyarnbunpnpm dlx @preskok-org/ui@latest add number-field
Usage
import { NumberField } from "@/registry/preskok/ui/preskok-ui/number-field"
export function NumberFieldDemo() {
return <NumberField label="Quantity" defaultValue={1} />
}