中文

Essential Button, Nav & Form Micro-Interactions

Press feedback, hold-to-confirm, click ripples, sheets, modals, and error shakes

Most perceived polish comes from everyday buttons, drawers, dialogs, and form validation. Each of these ten micro-interactions includes keyboard focus management, Escape dismissal, and screen-reader semantics out of the box.

Browse all 86 effects
Read full scenario AI prompt
Add accessible micro-interactions across my web app: Press Feedback for primary buttons, Hold-to-Confirm for destructive actions, Error Shake with role=alert for invalid fields, Push Navigation for drill-down views, Present Sheet for mobile modal tasks, Modal Dialog for desktop confirmations, and Theme Circle Reveal for dark mode switching.

10 runnable effects in this playbook

Click any card to copy its AI prompt, or hover to copy code or open its dedicated page.

按下缩小回弹Shrink a button slightly while pressed and spring it back on release.
危险操作确认
长按填充确认Press and hold a button to fill its progress bar from left to right; releasing early cancels.
找到我
邮件微信订阅
Google点击涟漪Send a ripple out from the point of a click.
左右抖动提示Shake an element side to side to signal an error.
首页布局草图
待办清单
新建笔记完成
标题与摘要
Apple底部卡片弹出Slide a rounded sheet up from the bottom while slightly scaling down and dimming the background view.
设计评审刚才›
规范更新昨天›
版本归档周一›
‹ 返回详情
Apple侧滑压栈转场Slide a new view in full-width from the right while shifting the previous view left with subtle dimming.
北煜ii的博客
侧边滑入滑出Slide a side panel in from the edge and back out.
纸间把夜晚
留给阅读。
Google圆形扩散换肤A new theme expands from its button as a circle, then shrinks back on the return trip.

Related side-by-side comparisons

Frequently asked questions

When should I use Push Navigation vs a Present Bottom Sheet?

Use Push for linear drill-down along the same hierarchy (list to detail); use Present when interrupting the flow for a self-contained temporary task like compose or login.

Should destructive actions use Hold-to-Confirm or a confirmation dialog?

Hold-to-Confirm prevents accidental taps smoothly for frequent actions without opening a modal, while irreversible account or data deletion still warrants a dedicated confirmation dialog.

How does circular dark-mode theme reveal work natively?

Use the native View Transitions API to animate a clip-path: circle() from the toggle button coordinates to the farthest viewport corner, falling back to an instant switch when unsupported or under reduced motion.

More motion playbooks

Shown once per release · Always available in changelog