# V input 23

> Input with inline start icon

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-input-23).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-input-23
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-input-23-light-c0fbeaafb3610c2e.png
- Registry item: https://ui.cnippet.dev/r/v-input-23.json
- Categories: input
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-input-23.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: `@cnippet/input`

## Files

### `registry/default/variants/v-input-23.tsx`

```tsx
import { SearchIcon } from "lucide-react";
import { Field, FieldLabel } from "@/registry/default/ui/field";
import { Input } from "@/registry/default/ui/input";

export function Pattern() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel htmlFor="input-icon-search">Search</FieldLabel>
      <div className="relative">
        <div
          aria-hidden="true"
          className="pointer-events-none absolute inset-y-0 start-0 flex items-center ps-3 text-muted-foreground/80"
        >
          <SearchIcon className="size-4" />
        </div>
        <Input
          className="ps-9"
          id="input-icon-search"
          placeholder="Search projects…"
          type="search"
        />
      </div>
    </Field>
  );
}
```
