# With tooltip

> Help icon in the trailing addon opens a tooltip on hover.

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

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

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/input-08.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`, `button`, `tooltip`

## Files

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

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

import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from '@/components/ui/input-group'
import {
  Tooltip,
  TooltipContent,
  TooltipProvider,
  TooltipTrigger,
} from '@/components/ui/tooltip'

export function Input08() {
  return (
    <InputGroup className="max-w-sm">
      <InputGroupInput placeholder="API key" />
      <InputGroupAddon align="inline-end">
        <TooltipProvider delay={300}>
          <Tooltip>
            <TooltipTrigger
              render={
                <InputGroupButton aria-label="API key help" size="icon-xs">
                  <CircleHelpIcon />
                </InputGroupButton>
              }
            />
            <TooltipContent side="top">
              Find your API key in project settings under Integrations.
            </TooltipContent>
          </Tooltip>
        </TooltipProvider>
      </InputGroupAddon>
    </InputGroup>
  )
}
```
