# Input with affix

https://fieldbook.lizardi.mx/components/input-group-affix

Category: Inputs
![Still of the Input with affix component, a Fieldbook UI component in Inputs.](https://fieldbook.lizardi.mx/thumbs/input-group-affix.webp)
Preview video: https://ejpqcxcjbiyabxkx.public.blob.vercel-storage.com/previews/input-group-affix-dcb9aeecf5.mp4 (5 s, silent)

Input with affix: A text field fused with a leading icon or short label, like a URL scheme, sharing one bordered shell that focuses as a single control.

## Frameworks

react, vue, svelte, astro, html

## Preview controls

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

| Name | Type | Default | Options or constraints |
| --- | --- | --- | --- |
| prefixLabel | text | https:// | Up to 20 characters |
| placeholder | text | yoursite.com | Up to 40 characters |
| accent | color | #9BE15D | No additional limit in the metadata. |
| showIcon | boolean | true | No additional limit in the metadata. |

## Usage notes

Input with affix uses the inline preview frame with a light/dark theme setting.

### Which frameworks are available for Input with affix?

Input with affix is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

### What does Input with affix depend on?

The React metadata lists these npm dependencies beyond React: clsx.

### What accessibility details are visible in Input with affix?

The React source for Input with affix includes: native elements (input, label); attributes and handlers (aria-hidden, aria-label). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

### How does Input with affix handle reduced motion?

The source scan found no direct useReducedMotion() or matchMedia preference read in Input with affix's index.tsx. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

## Install through MCP

Connect your client, call get_component to retrieve the implementation, then get_install_command for installation instructions. Choose a listed framework, integrate the returned source and verify it in your application.

```json
{
  "tool": "get_component",
  "arguments": {
    "slug": "input-group-affix",
    "framework": "react"
  }
}
```

[For agents](https://fieldbook.lizardi.mx/docs/agents)
[MCP](https://fieldbook.lizardi.mx/api/mcp)

## Related open components

- [Addon Input Group](https://fieldbook.lizardi.mx/components/addon-input-group)
- [Appointment Range Card](https://fieldbook.lizardi.mx/components/appointment-range-card)
- [Auto Grow Textarea](https://fieldbook.lizardi.mx/components/auto-grow-textarea)
- [Birthdate popover picker](https://fieldbook.lizardi.mx/components/birthdate-popover-picker)
- [Character budget counter](https://fieldbook.lizardi.mx/components/character-budget-counter)
- [Check draw toggle](https://fieldbook.lizardi.mx/components/check-draw-toggle)
