Textarea
Area di testo
Una textarea è un riquadro per digitare diverse righe di testo. Le sue dimensioni possono restare fisse o essere modificabili.
Un esempio vero
Un modulo di feedback dà alle persone abbastanza spazio visibile per spiegare un problema nei dettagli.
Parti principali
- 01Etichetta persistente
- 02Input control
- 03Hint or format
- 04Validation message
Usalo quando
Usalo per messaggi più lunghi, note, descrizioni o testi che sembrano codice.
Non usarlo quando
Non mettere mai dati strutturati in un unico grande riquadro quando campi separati renderebbero ogni risposta più chiara.
Nome usato nel codice
<textarea> 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 Area di testo (Textarea). User context: Un modulo di feedback dà alle persone abbastanza spazio visibile per spiegare un problema nei dettagli. Recommended pattern: Area di testo (Textarea). Why it fits: Usalo per messaggi più lunghi, note, descrizioni o testi che sembrano codice. Do not use it when: Non mettere mai dati strutturati in un unico grande riquadro quando campi separati renderebbero ogni risposta più chiara. 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 Area di testo (Textarea) is used now. Definition: Una textarea è un riquadro per digitare diverse righe di testo. Le sue dimensioni possono restare fisse o essere modificabili. 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.