Modal

Example
import { Modal } from "rfui";

#Basic

Example
<Modal isOpen={isOpen} close={close}>
  Example
</Modal>

#With heading

Set heading to a string.

Modal heading

Example
<Modal heading="Modal heading" isOpen={isOpen} close={close}>
  Example
</Modal>

#Props

PropRequiredDefaultType and notes
isOpen-
boolean
close-
() => void
Use this to set isOpen to false.
heading--
string
children-
ComponentChild
...rest--
ComponentProps<"dialog">
See the docs for rest parameters. For Modal, you could pass anything you normally would pass to <dialog> because the return value looks something like this:
<dialog class={containerClass} {...restWithoutClass}>
  {children}
</dialog>