Liking cljdoc? Tell your friends :D

mantine.modals

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/).
raw docstring

closeclj/s

(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).
sourceraw docstring

close-allclj/s

(close-all)

Close all open modals.

Close all open modals.
sourceraw docstring

modals-providerclj/s

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.

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.
sourceraw docstring

openclj/s

(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).
sourceraw docstring

open-confirm-modalclj/s

(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.
sourceraw docstring

open-context-modalclj/s

(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.
sourceraw docstring

providerclj/s

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.
sourceraw docstring

update-context-modalclj/s

(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).
sourceraw docstring

update-modalclj/s

(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`).
sourceraw docstring

use-modalsclj/s

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, ...).
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close