Skip to content
Menu

Inputs

Input with affix

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.

Using Input with affix

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

Customize the preview

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

ControlTypeDefaultPreview limits
prefixLabeltexthttps://Up to 20 characters
placeholdertextyoursite.comUp to 40 characters
accentcolor#9BE15DNo additional limit in the metadata.
showIconbooleantrueNo additional limit in the metadata.
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.

Connect your agent

Related open components