You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/MENTAL-MODEL.md
+47Lines changed: 47 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,53 @@ This seems counterintuitive after years of state-driven frameworks, but Azoth le
45
45
46
46
**Contrast with other frameworks:** Even SolidJS has quirky non-standard JavaScript behavior arising from transpilation rules. Azoth avoids this by keeping the abstraction layer minimal and aligned with the platform.
47
47
48
+
#### Real-World Example: Tap-to-Dismiss Tooltips
49
+
50
+
This production code implements mobile-friendly tooltips with tap-to-dismiss behavior:
51
+
52
+
```jsx
53
+
constStatCard= ({ label, info, value }) => {
54
+
// Toggle focus on tap (for mobile dismiss)
55
+
// Check on pointerdown BEFORE focus changes, then act on click
0 commit comments