"use client"
import { Form } from "react-aria-components"
import { Button } from "@/components/ui/button"
import { FieldError, Label } from "@/components/ui/field"
import { NumberField, NumberInput } from "@/components/ui/number-field"
export default function NumberFieldInvalidDemo() {
return (
<Form onSubmit={(e) => e.preventDefault()} className="space-y-4">
<NumberField isRequired>
<Label>Cookies</Label>
<NumberInput />
<FieldError />
</NumberField>
<Button type="submit">Submit</Button>
</Form>
)
}
npx shadcn@latest add @intentui/number-field-invalid-demoUsage varies by registry entry. Refer to the registry docs or source files below for details.