# With loading spinner

> Spinning loader in the trailing addon while searching.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/input-06).

- Page, with a live preview: https://shadcn.exchange/r/flx/input-06
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/input-06-light-f4c05bd730a09d24.png
- Registry item: https://ui.flexnative.com/r/input-06.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/input-06.json
```

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

## Dependencies

- npm packages: `lucide-react`
- Registry items: `input-group`

## Files

### `registry/patterns/input/input-06.tsx`

```tsx
import { Loader2Icon } from 'lucide-react'

import {
  InputGroup,
  InputGroupAddon,
  InputGroupInput,
} from '@/components/ui/input-group'

export function Input06() {
  return (
    <InputGroup className="max-w-sm">
      <InputGroupInput placeholder="Searching..." />
      <InputGroupAddon align="inline-end">
        <Loader2Icon className="text-muted-foreground size-4 animate-spin" />
      </InputGroupAddon>
    </InputGroup>
  )
}
```
