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: .claude/skills/generate-frontend-forms/SKILL.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -491,6 +491,62 @@ The form system automatically shows:
491
491
-**Checkmark** on success (fades after 2s)
492
492
-**Warning icon** on validation error (with tooltip)
493
493
494
+
### Confirmation Dialogs
495
+
496
+
For dangerous operations (security settings, permissions), use the `confirm` prop to show a confirmation modal before saving. The `confirm` prop accepts either a string or a function.
497
+
498
+
```tsx
499
+
<AutoSaveField
500
+
name="require2FA"
501
+
schema={schema}
502
+
initialValue={false}
503
+
confirm={value=>
504
+
value
505
+
?'This will remove all members without 2FA. Continue?'
506
+
:'Are you sure you want to allow members without 2FA?'
0 commit comments