+ above, input with a * compact copy button overlaid on the right edge. A
wrapper around * the input+button provides a dedicated positioning context so nothing * leaks from the label's layout rules. * * The copy button reads the input's CURRENT value (live) via * data-copy-target so users can edit the field and still copy the new value. * * Required view vars: * $name — input name attribute * $label — already-translated label text * * Optional: * $id, $value, $type (default 'text'), $placeholder, * $readonly, $required, $disabled */ $inputName = (string) ($name ?? ''); if ($inputName === '') { return; } $inputId = (string) ($id ?? $inputName); $inputType = (string) ($type ?? 'text'); $inputValue = (string) ($value ?? ''); $inputLabel = (string) ($label ?? ''); $inputPlaceholder = (string) ($placeholder ?? ''); $inputReadonly = (bool) ($readonly ?? false); $inputRequired = (bool) ($required ?? false); $inputDisabled = (bool) ($disabled ?? false); ?>