Input group
Input and button in one field, for example a newsletter signup.
BackgroundGridAccent
Corners
SharpRound
Shadow
NoneStrong
Motion
NoneBounce
<style>
.ux-ig{display:flex;align-items:center;gap:8px;width:100%;max-width:260px;height:52px;padding:4px 4px 4px 16px;border:1px solid var(--line,#cfd2da);border-radius:calc(14px * var(--r,1));background:var(--bg,#fff);transition:border-color var(--dur,.15s) var(--ease,ease),box-shadow var(--dur,.15s) var(--ease,ease)}
.ux-ig:focus-within{border-color:var(--accent,#cc4a26);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent,#cc4a26) 18%,transparent)}
.ux-ig input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--fg,#14151a);font:15px system-ui}
.ux-ig input::placeholder{color:var(--muted,#6b6f7b)}
.ux-ig button{display:grid;place-items:center;flex:none;width:44px;height:100%;padding:0;border:0;border-radius:calc(10px * var(--r,1));background:var(--accent,#cc4a26);color:#fff;cursor:pointer;transition:background-color var(--dur,.15s) var(--ease,ease)}
.ux-ig button:hover{background:color-mix(in srgb,var(--accent,#cc4a26) 88%,#000)}
</style>
<div class="ux-ig"><input type="email" placeholder="you@example.com" aria-label="Email"><button type="button" aria-label="Subscribe"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 6l6 6-6 6"/></svg></button></div>When to use it
Use this inside a form where people type or paste information. It should feel at home next to your other fields, with the same spacing and focus style.
Accessibility
Check that it reaches every state with the keyboard alone before you ship it, and keep the focus ring instead of removing it for looks. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.