Trigger
The button that opens the drawer.
import { Drawer } from '@vladyoslav/drawer'
// or import { DrawerTrigger } from '@vladyoslav/drawer'
export const MyComponent = () => (
<Drawer.Root>
<Drawer.Trigger>Open Drawer</Drawer.Trigger>
...
</Drawer.Root>
)
API
The Trigger
component has been completely re-exported from @radix-ui/react-dialog
(opens in a new tab)