below the input * string|null $id — override the id attribute (defaults to $name) * array $attrs — extra HTML attributes as key=>value pairs (e.g. min/max for number) * * The partial does NOT call htmlspecialchars on $value — the caller is responsible. */ $type = $type ?? 'text'; $required = $required ?? false; $placeholder = $placeholder ?? ''; $hint = $hint ?? null; $id = $id ?? $name; $attrs = $attrs ?? []; $attrStr = ''; foreach ($attrs as $k => $v) { $attrStr .= ' ' . htmlspecialchars($k) . '="' . htmlspecialchars((string)$v) . '"'; } ?>
>
>