diff options
author | 2022-06-24 12:55:36 -0500 | |
---|---|---|
committer | 2022-06-24 12:55:36 -0500 | |
commit | 6a6047483bccbedcf3fea890ad588e53f0800b49 (patch) | |
tree | 27e2786719477a4a32b6c659a2556247de1aa92d /.changeset/lovely-bulldogs-admire.md | |
parent | 3e6ed5d1bc80b55fed1e1b01a4c8d9398d5cd543 (diff) | |
download | astro-@astrojs/vue@0.2.0.tar.gz astro-@astrojs/vue@0.2.0.tar.zst astro-@astrojs/vue@0.2.0.zip |
[ci] release (#3692)astro@1.0.0-beta.54@astrojs/vue@0.2.0@astrojs/svelte@0.2.0@astrojs/solid-js@0.2.0@astrojs/sitemap@0.2.2@astrojs/react@0.2.0@astrojs/preact@0.2.0@astrojs/lit@0.3.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to '.changeset/lovely-bulldogs-admire.md')
-rw-r--r-- | .changeset/lovely-bulldogs-admire.md | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/.changeset/lovely-bulldogs-admire.md b/.changeset/lovely-bulldogs-admire.md deleted file mode 100644 index 74888cb27..000000000 --- a/.changeset/lovely-bulldogs-admire.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -'@astrojs/preact': minor -'@astrojs/react': minor -'@astrojs/solid-js': minor ---- - -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 -<Component> - <h2 slot="title">Hello world!</h2> - <h2 slot="slot-with-dash">Dash</h2> - <div>Default</div> -</Component> - -// For .jsx -export default function Component({ title, slotWithDash, children }) { - return ( - <> - <div id="title">{title}</div> - <div id="slot-with-dash">{slotWithDash}</div> - <div id="main">{children}</div> - </> - ) -} -``` |