COMPONENT

Input Field

Formularfeld mit Label, Hinweis und sauberem Fokuszustand.

testedORIGINAL
Live Preview Interaktiv
Playground

Implementierungen

HTML · HTML + CSS + JS

index.html

<label class="ui-field"><span data-prop-text="label">Bezeichnung</span><input data-prop-placeholder="placeholder" placeholder="Eingabe" /></label><style>.ui-field{display:grid;gap:7px;font:14px system-ui;color:#27272a}.ui-field input{border:1px solid #d4d4d8;border-radius:8px;padding:11px 12px;font:inherit}:root[data-state="focus"] .ui-field input{outline:3px solid #c4b5fd;border-color:#7c3aed}:root[data-state="disabled"] .ui-field{opacity:.55;pointer-events:none}</style>