From 3a0ef8ae17bad90b4a06ac6e70d5b2d01e8187ca Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 2 Mar 2022 16:03:25 -0600 Subject: [PATCH] chore: add changeset --- .changeset/clean-bottles-drive.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .changeset/clean-bottles-drive.md diff --git a/.changeset/clean-bottles-drive.md b/.changeset/clean-bottles-drive.md new file mode 100644 index 0000000000000..a48d4570d24bf --- /dev/null +++ b/.changeset/clean-bottles-drive.md @@ -0,0 +1,11 @@ +--- +'astro': minor +--- + +Update `Astro.slots` API with new public `has` and `render` methods. + +```ts +if (Astro.slots.has("default")) { + const content = await Astro.slots.render("default"); +} +```