DialogScope

Opens a dialog's flow fresh every time: the first step, empty fields, no earlier result or secret. The content stays as it was while the dialog closes.

View source
import { DialogScope } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The component that keeps the flow's state and renders the dialog with the same open.

  • open
    boolean

    Whether the dialog inside is open; pass the value its open gets.