Forms & selection@neumorphism-ui/input

Input

Forwards every native input attribute while consistently styling the neumorphic inset surface, file input, disabled state, and aria-invalid state.

@neumorphism-ui/input
Registry JSON

Preview

Installation

Installation: inputnpx shadcn@latest add @neumorphism-ui/input

The CLI resolves npm dependencies, base tokens, utilities, and component source in order.

New to this Registry? Set up the namespace before continuing.

Usage

Usage: Installationnpx shadcn@latest add @neumorphism-ui/input @neumorphism-ui/label

Import

Input import code
import { Input } from "@/components/ui/input"
import { Label } from "@/components/ui/label"

Example

Input usage code
<div className="grid gap-2">
  <Label htmlFor="email">Email</Label>
  <Input
    id="email"
    name="email"
    type="email"
    placeholder="you@example.com"
    autoComplete="email"
  />
</div>

API Reference

ComponentPropTypeDefaultDescription
InputtypeReact.HTMLInputTypeAttribute"text" (browser default)The native input type, such as email, password, or file.
Inputvalue / defaultValuestring | number—The controlled value or initial uncontrolled value.
Inputplaceholderstring—A short example that helps communicate the expected value format.
Inputdisabled / required / readOnlybooleanfalseSets native input constraints.
Inputaria-invalidboolean | string—Enables the error border and focus ring.

Accessibility

  • 01

    Connect Label htmlFor to the Input id, or provide an aria-label.

  • 02

    A placeholder does not replace Label and should only provide an example of the expected format.

  • 03

    For errors, set aria-invalid and connect the error message id with aria-describedby.