# Input Demo

> Example usage of Input.

A shadcn/ui block from the [@mizzle](https://mizzle.saddy.me/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/mizzle/input-demo).

- Page, with a live preview: https://shadcn.exchange/r/mizzle/input-demo
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/mizzle/input-demo-light-7a68231ba3d11262.png
- Registry item: https://mizzle.saddy.me/r/input-demo.json
- Categories: forms
- Listed: 2026-10-17, source last changed 2026-10-17

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/mizzle/input-demo.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@mizzle/field`, `@mizzle/input`

## Notes from the registry

Docs: https://mizzle.saddy.me/docs/components/forms/input

## Files

### `registry/demos/forms/input-demo.tsx`

```tsx
"use client"

import { Field, FieldLabel } from "@/components/mizzle/forms/field"
import { Input, Textarea } from "@/components/mizzle/forms/input"

export default function InputDemo() {
  return (
    <div className="flex w-[320px] max-w-full flex-col gap-5">
      <Field>
        <FieldLabel>Full name</FieldLabel>
        <Input placeholder="Keza Umutoni" />
      </Field>
      <Field>
        <FieldLabel>Bio</FieldLabel>
        <Textarea placeholder="A line or two about you. The box grows as you write." />
      </Field>
      <Field disabled>
        <FieldLabel>Member since</FieldLabel>
        <Input defaultValue="March 2021" />
      </Field>
    </div>
  )
}
```
