nessra uinessra ui

Displays a form input field.

Loading...
import { Input } from "@/components/ui/input"

export function InputDemo() {

Installation

pnpmnpmyarnbun
pnpm dlx shadcn@latest add https://nessra-ui.vercel.app/r/input.json

Usage

import { Input } from "@/components/ui/input"
<Input type="text" placeholder="Enter your name" />

Examples

Default

Loading...
import { Input } from "@/components/ui/input"

export function InputDefault() {

With Label

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

Disabled

Loading...
import { Input } from "@/components/ui/input"

export function InputDisabled() {

With Button

Loading...
import { Button } from "@/components/ui/button"
import { Input } from "@/components/ui/input"

File Input

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

API Reference

Input

All standard HTML input attributes are supported.

PropTypeDefaultDescription
typestring"text"The input type
placeholderstring-Placeholder text
disabledbooleanfalseDisable the input