From 6a6047483bccbedcf3fea890ad588e53f0800b49 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 24 Jun 2022 12:55:36 -0500 Subject: [ci] release (#3692) Co-authored-by: github-actions[bot] --- packages/integrations/preact/CHANGELOG.md | 28 ++++++++++++++++++++++++++++ packages/integrations/preact/package.json | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) (limited to 'packages/integrations/preact') diff --git a/packages/integrations/preact/CHANGELOG.md b/packages/integrations/preact/CHANGELOG.md index 07fbf0ea0..fa02e8590 100644 --- a/packages/integrations/preact/CHANGELOG.md +++ b/packages/integrations/preact/CHANGELOG.md @@ -1,5 +1,33 @@ # @astrojs/preact +## 0.2.0 + +### Minor Changes + +- [#3652](https://github.com/withastro/astro/pull/3652) [`7373d61c`](https://github.com/withastro/astro/commit/7373d61cdcaedd64bf5fd60521b157cfa4343558) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Add support for passing named slots from `.astro` => framework components. + + Each `slot` is be passed as a top-level prop. For example: + + ```jsx + // From .astro + +

Hello world!

+

Dash

+
Default
+
; + + // For .jsx + export default function Component({ title, slotWithDash, children }) { + return ( + <> +
{title}
+
{slotWithDash}
+
{children}
+ + ); + } + ``` + ## 0.1.3 ### Patch Changes diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index 72a6174cc..7229e6b2e 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/preact", "description": "Use Preact components within Astro", - "version": "0.1.3", + "version": "0.2.0", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", -- cgit v1.2.3