import React from "react"; /** * Text input with optional label, leading icon and error state. */ export function Input({ label, value, onChange, placeholder, leadingIcon = null, trailing = null, error = null, disabled = false, size = "md", type = "text", fullWidth = true, style = {}, ...rest }) { const [focus, setFocus] = React.useState(false); const height = size === "sm" ? "var(--control-h-sm)" : "var(--control-h)"; const borderColor = error ? "var(--status-error)" : focus ? "var(--action-primary)" : "var(--border-control)"; return ( ); }