Mantine @mantine/modals 9.5.0 wrappers (generated, supplement hoisted from codegen/supplements/).
Mantine @mantine/modals 9.5.0 wrappers (generated, supplement hoisted from codegen/supplements/).
(close id)Close the modal with the given id (raw string in and out).
Close the modal with the given id (raw string in and out).
ModalsProvider — Centralized modals manager with option to handle state of multi-step modals (Modals family)
Props (docgen 9.5.0):
React.ReactNode — Your appConfirmLabels — Confirm modal labelsModalSettings — Shared Modal component props, applied for every modalRecord<string, FC<ContextModalProps<any>>> — Predefined modalsOptional leading props map; remaining args are children.
ModalsProvider — Centralized modals manager with option to handle state of multi-step modals (Modals family) https://mantine.dev/x/modals Props (docgen 9.5.0): - **children** `React.ReactNode` — Your app - **labels** `ConfirmLabels` — Confirm modal labels - **modalProps** `ModalSettings` — Shared Modal component props, applied for every modal - **modals** `Record<string, FC<ContextModalProps<any>>>` — Predefined modals Optional leading props map; remaining args are children.
(open data)Open a modal. The options map goes through the standard props converter (:title, :children, :size, :centered, ...); nested *Props maps convert deeply (kebab keys camelized at every depth). Returns the modal id (raw string).
Open a modal. The options map goes through the standard props converter (:title, :children, :size, :centered, ...); nested *Props maps convert deeply (kebab keys camelized at every depth). Returns the modal id (raw string).
(open-confirm-modal data)Open a confirmation modal. Options map converted like open; :labels and
:on-confirm / :on-cancel supply the confirm/cancel wiring. Returns the modal id.
Open a confirmation modal. Options map converted like `open`; :labels and :on-confirm / :on-cancel supply the confirm/cancel wiring. Returns the modal id.
(open-context-modal data)Open a context modal registered on the provider. Options map converted like
open; :modal is the registry key (passed verbatim) and :inner-props is passed
RAW to the registered component. Returns the modal id.
Open a context modal registered on the provider. Options map converted like `open`; :modal is the registry key (passed verbatim) and :inner-props is passed RAW to the registered component. Returns the modal id.
Alias for modals-provider — the ModalsProvider that must be mounted once
(inside MantineProvider) for the imperative modal fns to display anything.
Alias for `modals-provider` — the ModalsProvider that must be mounted once (inside MantineProvider) for the imperative modal fns to display anything.
(update-context-modal data)Update an open context modal; matched by :id in the options map (converted like
open, with :inner-props passed RAW).
Update an open context modal; matched by :id in the options map (converted like `open`, with :inner-props passed RAW).
(update-modal data)Update an open modal; matched by :id in the options map (converted like open).
Update an open modal; matched by :id in the options map (converted like `open`).
Reactive hook over the default modals store. Raw passthrough: returns the raw JS ModalsContext value (read via interop: .-modals, .-openModal, ...).
Reactive hook over the default modals store. Raw passthrough: returns the raw JS ModalsContext value (read via interop: .-modals, .-openModal, ...).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |