---
title: "Input"
description: "A text input with focus, disabled, and invalid states, including file inputs, styled to match the rest of edbn/ui. Built on Base UI."
plan: Free
docs: https://ui.edbn.me/docs/components/input
---

# Input

A text input with focus, disabled, and invalid states, including file inputs, styled to match the rest of edbn/ui. Built on Base UI.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/input.json
```

## Dependencies
- npm: @base-ui/react@^1.8.0
- edbn: edbn-base

## Usage

```tsx examples/input-basic.tsx
"use client";
import { Input } from "@/components/ui/input";

export default function InputBasicPreview() {
  return (
    <Input
      className="max-w-xs"
      aria-label="Email"
      placeholder="Email address"
    />
  );
}
```

## Files
- components/ui/input.tsx (21 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
