Sizes
Modal without Action
Using the confirm modal
To easily use a confirm modal with actions YES/NO, you may use the confirm function
import confirm from "@kit/design/modal/confirm" const result = await confirm("Are you sure?", { confirm: "Yes", cancel: "No" })
Using a modal with a custom title bar
You can pass JSX into the label
prop if you need a more customized title.
If you do this, you should also pass an ariaLabel
prop that describes the modal.
Separator
By default, our modal have a separator line between the title and the content only when Actions are used.
If you want to show the separator even when there are no actions, you can use the separator
prop.