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
/** The title of the modal. This will be rendering as the heading of the modal, and the modal's `arial-labelledby` attribute will reference the title/heading element. If the modal does not have `title` or `heading`, use `ariaLabel` to provide an accessible name for the modal. */
237
-
title?: string
238
-
/** Also the title of the modal, just for API flexibility. If both `title` and `heading` are passed, `title` will win. */
239
-
heading?: string
235
+
title?: ReactNode
236
+
/** Also the title of the modal, just for API flexibility. If both `title` and `heading` are passed, `title` will take precedence. */
237
+
heading?: ReactNode
240
238
/** The aria-label of the modal. Use only if the modal does NOT have a `title` or `heading`. */
241
239
ariaLabel?: string
242
240
/** By default, the first element in the tab order of the Modal content will be focussed. To specify an element to be focussed when the modal opens, pass an element, DOM node, or selector string. */
0 commit comments