View as Markdown

API reference: @salmonui/overlays/dialog

DialogTriggerfunction

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

Opens the dialog (aria-haspopup="dialog", aria-expanded); render swaps the element. Use it in trigger.