Text Field
Campo di testo
Un campo di testo è un riquadro con etichetta e una sola riga, dove le persone digitano o modificano il testo.
Un esempio vero
Un campo email mantiene la sua etichetta visibile. Mostra un esempio, una nota utile ed eventuali errori.
Parti principali
- 01Etichetta persistente
- 02Input control
- 03Hint or format
- 04Validation message
Usalo quando
Usalo per brevi risposte libere, come un nome, un indirizzo e-mail o un titolo.
Non usarlo quando
Non usare mai il testo segnaposto come unica etichetta perché scompare quando qualcuno digita.
Nome usato nel codice
<input type="text"> Prima di spedire
Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages.
Outcome: Complete the task with Campo di testo (Text Field). User context: Un campo email mantiene la sua etichetta visibile. Mostra un esempio, una nota utile ed eventuali errori. Recommended pattern: Campo di testo (Text Field). Why it fits: Usalo per brevi risposte libere, come un nome, un indirizzo e-mail o un titolo. Do not use it when: Non usare mai il testo segnaposto come unica etichetta perché scompare quando qualcuno digita. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): Lo standard copre solo l'ambito elencato. Non sceglie lo stile visivo, la decisione sul prodotto o l'esempio di vocabolario. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Campo di testo (Text Field) is used now. Definition: Un campo di testo è un riquadro con etichetta e una sola riga, dove le persone digitano o modificano il testo. Release checks: Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.