Comments (3)
Thanks for checking out the example. It looks like you have a typo in component B inside your fork. The closing tag of the div is missing a >
.
<div>B start</div
<slot name="s">
I'm not sure why, but this makes the default content show up, as you've noticed. If you close the div the default content does not show up, at least on my end. The same is true for the initial example I've linked to.
from docs.
@sasoria Hey! Just looking through the stackblitz repro you posted but it looks like it actually does work and the B
component correctly shows the fallback content.
And I've forked and added a console log which shows the slot is present, but (at least for me) it's still showing the fallback content.
from docs.
Ah! I don't know how I missed that! But yes, now when I try it with the closing tag then yes the default content disappears! Thank you for taking a look!
from docs.
Related Issues (20)
- a working navigation menu that is both responsive to screen size and responds to user input on this page
- Add clearer instructions to experimental content intellisense setup HOT 1
- Add SSR pagination example to docs HOT 2
- Self-host deployment docs HOT 1
- Link to component prop types for getting props of built in components HOT 3
- Infinite Loop redirection HOT 1
- Recipe for analyzing bundle size HOT 1
- Clarify that named slots are not supported in md/mdx is layout is expressed in frontmatter HOT 1
- propertiesToHash missing from Image Service API Docs HOT 2
- ⚠️ Issue: Use correct comment style in .env file for Astro / Strapi integration page HOT 1
- Internationalization (i18n) guide and recipe should be merged HOT 1
- Reroute directive header and status codes documentation HOT 1
- Build forms recipe is missing the prerender constant. HOT 5
- Misleading "HTML-only" in component intro
- Make Markdown flavour explicit on the markdown page
- Improvements to Pagination Documentation: Type Information, Argument Descriptions, and Redundant Sections HOT 3
- Expand and clarify "Call endpoints from the server" recipe page HOT 1
- ⚠️ When I try to use Astro DB with Turso (libsql) as db, I am unable to deploy in combination with Firebase Hosting as I cannot set --remote flag HOT 2
- V5 migration guide and Astro Container API documentation improvement
- Missing docs for `Astro.callAction` in `guides/actions`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.