Drawer
Gaveta
Um drawer desliza a partir da beirada da tela. Uma parte da página atrás dele continua visível.
Um exemplo real
Selecione um pedido para abrir seus detalhes pela direita. A lista de pedidos permanece visível atrás deles.
Partes principais
- 01Acionar
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
Use-o quando
Use-o para detalhes ou uma segunda tarefa menor quando manter o lugar atual ajuda.
Não o use quando
Nunca comprima um fluxo de trabalho longo com muitas etapas em uma gaveta estreita.
Nome usado no código
Dialog + edge positioning Antes de lançar
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome: Complete the task with Gaveta (Drawer). User context: Selecione um pedido para abrir seus detalhes pela direita. A lista de pedidos permanece visível atrás deles. Recommended pattern: Gaveta (Drawer). Why it fits: Use-o para detalhes ou uma segunda tarefa menor quando manter o lugar atual ajuda. Do not use it when: Nunca comprima um fluxo de trabalho longo com muitas etapas em uma gaveta estreita. 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): Nenhum padrão oficial único controla todo o termo. Seu significado pode mudar entre equipes, plataformas ou frameworks. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Conferir este pedido
Review how Gaveta (Drawer) is used now. Definition: Um drawer desliza a partir da beirada da tela. Uma parte da página atrás dele continua visível. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.