form-field — wyrd.component.input-group

InputGroup

Composition wrapper that visually attaches leading or trailing addons to one Text Field.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
leading-text state: default
https://
Usage
import { WyrdInputGroup } from "@wyrd-company/react";

<WyrdInputGroup leadingAddon="https://">
  Website Text Field
</WyrdInputGroup>
trailing-text state: default
USD
Usage
import { WyrdInputGroup } from "@wyrd-company/react";

<WyrdInputGroup trailingAddon="USD">
  Price Text Field
</WyrdInputGroup>
action-addon state: default
Search button
Usage
import { WyrdInputGroup } from "@wyrd-company/react";

<WyrdInputGroup trailingAddon="Search button">
  Search Text Field
</WyrdInputGroup>
02

Slots & events

SlotCardinalityAcceptsSummary
field exactly-one component Text Field that retains label, value, validation, disabled state, and editing behavior.
leading-addon zero-or-one text, icon, component Text, icon, or button visually attached before the text control and associated as its description.
trailing-addon zero-or-one text, icon, component Text, icon, or button visually attached after the text control and associated as its description.
03

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
addon.background color.surface-container
addon.foreground color.on-surface-variant
addon.border-color color.outline
addon.border-width 1px
addon.padding-x spacing.md
addon.padding-y spacing.sm
addon.text typography.body-md
addon.background-disabled color.disabled
addon.foreground-disabled color.on-surface-variant
radius rounded.sm
04

States

StateSourceSummary
default platform Enabled Text Field with one or more attached addons.
disabled platform Visual state inherited from the disabled Text Field.
invalid platform Error visual state inherited from the invalid Text Field.
05

Accessibility

From the contract's accessibility obligations. Role none

  • The Text Field and interactive addon children retain native keyboard behavior and document-order focus.
  • Text addon content is programmatically associated with the Text Field control as descriptive content.
  • Icon-only and button addons retain their own accessible names.
  • The wrapper adds no form-control role and does not duplicate Text Field semantics.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
06

SDUI

Status: serializable. Input Group serializes composition only; the nested Text Field retains its own value and event bindings.

SerializableMembers
Properties
Slotsfield, leading-addon, trailing-addon
Events
The Wyrding Way — a contract-first design system. © Wyrd Company