Skip to content

Commit

Permalink
Update clean-bottles-drive.md
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored Mar 4, 2022
1 parent 3840f09 commit 0afe7e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .changeset/clean-bottles-drive.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
'astro': minor
'astro': patch
---

Update `Astro.slots` API with new public `has` and `render` methods.
Update `Astro.slots` API with new public `has` and `render` methods.

This is a backwards-compatible change—`Astro.slots.default` will still be `true` if the component has been passed a `default` slot.

```ts
if (Astro.slots.has("default")) {
Expand Down

0 comments on commit 0afe7e2

Please sign in to comment.