Select
Selecionar
Um select abre uma lista fixa e deixa a pessoa escolher um valor.
Um exemplo real
Um campo de país mostra uma lista fixa e rejeita valores fora dela.
Partes principais
- 01Rótulo persistente
- 02Input control
- 03Hint or format
- 04Validation message
Use-o quando
Use-o quando a lista for fixa, não muito longa, e a página tiver pouco espaço.
Não o use quando
Nunca use para uma lista longa que as pessoas precisam buscar. Use uma combobox em vez disso.
Nome usado no código
<select> / role="listbox" Antes de lançar
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 Selecionar (Select). User context: Um campo de país mostra uma lista fixa e rejeita valores fora dela. Recommended pattern: Selecionar (Select). Why it fits: Use-o quando a lista for fixa, não muito longa, e a página tiver pouco espaço. Do not use it when: Nunca use para uma lista longa que as pessoas precisam buscar. Use uma combobox em vez disso. 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): O padrão cobre apenas o escopo listado. Ele não escolhe o estilo visual, decisão do produto ou exemplo de Vibulary. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Conferir este pedido
Review how Selecionar (Select) is used now. Definition: Um select abre uma lista fixa e deixa a pessoa escolher um valor. 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.