Input Group
A Field-compatible input with fused leading and trailing addons. It takes everything Field takes — label, hint or error, and ARIA wiring — then lets you slot a prefix and suffix into one continuous field.
Installation
Copy the piece into your app — it compiles with your build and the code is yours:
puzzle add piece input-group
Requires the pieces.css tokens merged into your app styles (see Introduction).
Usage
import InputGroup from '@/components/ui/InputGroup.pzl';
<InputGroup label="Website" value={ site } @change={ setSite }></InputGroup>Button in the suffix
Kbd hint
Error
Enter a valid domain
Accessibility
The wiring mirrors Field exactly. The label is a real <label for> tied to the input's id (a stable per-instance id is generated when you don't pass one). An error or hint is wired through aria-describedby, and an error also sets aria-invalid="true".
Focus lands on the real <input>, but the ring is painted on the wrapper with focus-within so the addons stay inside one focus outline. The outline color is set unconditionally (danger when errored), so transition-colors never flashes it on focus. Empty prefix/suffix containers collapse with empty:hidden, leaving no stray hairline.