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
**BAIDeleteConfirmModal** is a unified delete confirmation modal for table row deletion.
21
21
22
22
## Behavior
23
-
- **Single item**: Simple confirm dialog with item name displayed. OK button is immediately enabled.
24
-
- **Multiple items (2+)**: Requires typing confirmation text (localized "Delete") before OK is enabled.
25
-
- **\`requireConfirmInput\`**: Forces text-input confirmation even for a single item.
23
+
- **Single item**: Simple confirm dialog. OK button is immediately enabled.
24
+
- **Single item + \`requireConfirmInput\`**: Requires typing the item name. Item list is hidden — the name already appears in the description.
25
+
- **Multiple items (2+)**: Shows scrollable item list followed by a confirmation input requiring "Delete" to be typed.
26
26
27
27
## Key Features
28
28
- Accepts \`React.ReactNode\` for item labels (icons, tags, custom rendering)
29
-
- Scrollable item list for large selections
29
+
- Scrollable item list for multi-item selections
30
30
- \`extraContent\` slot for domain-specific additions (checkboxes, warnings)
31
-
- Built on \`BAIConfirmModalWithInput\` (multi) and \`BAIModal\` (single)
31
+
- Built on \`BAIModal\`
32
32
`,
33
33
},
34
34
},
@@ -74,7 +74,7 @@ export const SingleItemWithInput: Story = {
74
74
docs: {
75
75
description: {
76
76
story:
77
-
'Single item with `requireConfirmInput={true}`. User must type the item name to confirm.',
77
+
'Single item with `requireConfirmInput={true}`. Item list is hidden (name already appears in description). User must type the item name into the confirmation input to enable the Delete button.',
78
78
},
79
79
},
80
80
},
@@ -106,7 +106,7 @@ export const MultipleItems: Story = {
0 commit comments