import type { JSX } from "@solidjs/web"; import { VISUALLY_HIDDEN_STYLE } from "../visually-hidden-style"; /** * Props accepted by ``. Structurally equivalent to Solid's * built-in `JSX.InputHTMLAttributes` (the "all native * input attrs" bucket), minus `style` — we own the visually-hidden style * block and consumers shouldn't stomp it. */ export interface HiddenInputProps extends Omit, "style"> { /** * Optional style extensions merged ON TOP of `VISUALLY_HIDDEN_STYLE`. * Intended for niche cases (e.g. an inner `padding: '1px'` hack for * Safari iframe autofill); in practice you'll rarely need this. */ style?: JSX.CSSProperties | undefined; } /** * A visually-hidden `` used by checkbox / switch / radio / etc. to * make them participate in native form submission while the visible element * is a `