Skip to content

Commit

Permalink
Update src/guide/components/slots.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaTepluhina authored May 1, 2024
1 parent ad433e1 commit a0a5326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/components/slots.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Sometimes you want to render something based on whether or not a slot is present
You can use the [$slots](/api/component-instance.html#slots) property in combination with a [v-if](/guide/essentials/conditional.html#v-if) to achieve this.

In the example below we define a Card component with three conditional slots: `header`, `footer` and the `default` one.
When the header / footer / default is present we want wrap them to provide additional styling:
When the header / footer / default is present we want to wrap them to provide additional styling:

```vue-html
<template>
Expand Down

0 comments on commit a0a5326

Please sign in to comment.