View as Markdown

API reference: @salmonui/overlays/dialog

Dialogfunction

import { Dialog } from '@salmonui/overlays/dialog';
function Dialog(props: DialogProps): ReactElement;

namespace Dialog {
    const Trigger: DialogParts['Trigger'];
    const Close: DialogParts['Close'];
    const Title: DialogParts['Title'];
    const Description: DialogParts['Description'];
    const Body: DialogParts['Body'];
    const Footer: DialogParts['Footer'];
}

Dialog root: the open state, the trigger and the <dialog> (.salmon-dialog).