Skip to content

Commit bcdd28e

Browse files
committed
docs(composed-modal): explain difference with Modal
Closes #784
1 parent 864d687 commit bcdd28e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/pages/components/ComposedModal.svx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ components: ["ComposedModal", "ModalHeader", "ModalBody", "ModalFooter"]
88

99
`ComposedModal` lets you build custom modals by combining `ModalHeader`, `ModalBody`, and `ModalFooter` components. Use it to create focused interactions that require user attention or input.
1010

11+
**ComposedModal vs Modal**
12+
13+
`ComposedModal` provides a composition-based approach with `ModalHeader`, `ModalBody`, and `ModalFooter` sub-components for maximum flexibility. For simpler use cases, use [Modal](/components/Modal) instead. Both components share the same events and accessibility features.
14+
1115
## Composed modal
1216

1317
Create a modal with a header, body, and footer. Each section can be customized independently.

0 commit comments

Comments
 (0)