Renders a group of related inputs with a shared label, help text, and errors.
This component is used when two or more inputs belong together logically — for example, a budget range (min/max), a date range, or any pair of related values that share a single label.
Child inputs should set label_hidden={true} so that only the group label
is visible. The group label replaces individual input labels.
<.input_group id="budget-range" label="Budget per person"> <:help>Includes taxes</:help> <.input type="money" field={@form[:budget_min]} placeholder="Min" label_hidden /> <.input type="money" field={@form[:budget_max]} placeholder="Max" label_hidden /> </.input_group> <.input_group id="age-range" label="Age range" errors={["Enter both values"]}> <.input type="number" field={@form[:age_min]} placeholder="Min" label_hidden /> <.input type="number" field={@form[:age_max]} placeholder="Max" label_hidden /> </.input_group>