Course lesson

Render a Vue 3 Component with <slot /> and Test its Content Properties

By passing a slots option to our cy.mount() function, we can define content to be rendered inside our current component. We can use default or named components and eve use Vue’s h() function to create element and pass components with desired properties.

Duration
5 min
Access
Included
Transcript
Retained from source evidence

By passing a slots option to our cy.mount() function, we can define content to be rendered inside our current component. We can use default or named components and eve use Vue’s h() function to create element and pass components with desired properties.