Corvu Dialog

Hi everyone How I can receive the Dialog.Trigger from the @corvu/dialog by props?
<Dialog.Trigger as={'button'} type={'button'}></Dialog.Trigger>
<Dialog.Trigger as={'button'} type={'button'}></Dialog.Trigger>
Basically what I want is customize the button that is rendered on the Dialog.Trigger
5 Replies
Jasmin
Jasmin4mo ago
I don't fully understand what you want to accomplish, could you elaborte? Describing your use-case would be helpful I think.
Daniel Sousa @TutoDS
so basically, I want to have a component of dialog that will receive the button to customize the trigger with Radix I can use asChild and a pass a ReactNode but don't know how to do it
Jasmin
Jasmin4mo ago
corvu
Dynamic Components
Modify the DOM element or component a primitive component should render as.
jer3m01
jer3m014mo ago
thats a nice api
Daniel Sousa @TutoDS
Any idea why the dialog doesn't close when I press the escape key?
Want results from more Discord servers?
Add your server