View as Markdown

API reference: @salmonui/overlays/drawer

DrawerTriggerfunction

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

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