---
title: Input
description: A native input element.
links:
doc: https://base-ui.com/react/components/input#api-reference
---
## Installation
CLIManual
```bash
npx shadcn@latest add @coss/input
```
Install the following dependencies:
```bash
npm install @base-ui/react
```
Copy and paste the following code into your project.Update the import paths to match your project setup.
## Usage
```tsx
import { Input } from "@/components/ui/input"
```
```tsx
```
## API Reference
### Input
Styled wrapper for `Input` from Base UI with custom size options.
| Prop | Type | Default | Description |
| ---------- | ------------------------------------- | ----------- | ------------------------------------------------ |
| `size` | `"sm" \| "default" \| "lg" \| number` | `"default"` | Controls the input height. Number values are passed to the native `size` attribute |
| `unstyled` | `boolean` | `false` | When true, removes the wrapper styling (border, shadow, etc.) |
## Examples
For accessible labelling and validation, prefer using the `Field` component to wrap inputs, or the `FieldControl` component. See some [related examples](/ui/docs/components/field).
### Small Size
### Large Size
### Disabled
### File
### With Label
### With Button
### Form Integration