Fallback content

Fallback content allows the child component to display fallback content in case the parent component did not provide content. The fallback content can be done with CSS, it is necessary to add a CSS selector (and the appropriate CSS) on the named Slot in case it is empty.


In this example, we show three cards, but some of them are not filled with content. Use the right CSS selector to specify the fallback content.

Edit Tutorial