Skip to content

Commit

Permalink
[mantine.dev] Add metion that Modal.Stack is only compatible with Mod…
Browse files Browse the repository at this point in the history
…al component
  • Loading branch information
rtivital committed Nov 28, 2024
1 parent 39e711e commit dbecbe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/mantine.dev/src/pages/core/drawer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ Differences from using multiple `Drawer` components:

<Demo data={DrawerDemos.stack} />

Note that `Drawer.Stack` can only be used with `Drawer` component. Components built with `Drawer.Root`
and other compound components are not compatible with `Drawer.Stack`.

## useDrawersStack hook

`useDrawersStack` hook provides an easy way to control multiple drawers at the same time.
Expand Down
3 changes: 3 additions & 0 deletions apps/mantine.dev/src/pages/core/modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Differences from using multiple `Modal` components:

<Demo data={ModalDemos.stack} />

Note that `Modal.Stack` can only be used with `Modal` component. Components built with `Modal.Root`
and other compound components are not compatible with `Modal.Stack`.

## useModalsStack hook

`useModalsStack` hook provides an easy way to control multiple modals at the same time.
Expand Down

0 comments on commit dbecbe2

Please sign in to comment.