Comments (5)
You have to add a <slot />
in your Card.astro
component:
<li class="link-card">
<slot />
</li>
from astro.
You have to add a
<slot />
in yourCard.astro
component:<li class="link-card"> <slot /> </li>
Yeah, sorry I missed that in my example in Stackblitz, and thank you for your response. But I'm still having an issue with my app. I have a default slot and a few named slots, I'm not sure what can cause the issue.
from astro.
When I added double <slot />
it worked... Can anyone explain what just happened?
from astro.
@milovanovicd Can you provide a code sample so we can better understand what you mean by a double <slot />
?
In your Stackblitz, it's not a double slot: you just opened then closed the slot using <slot></slot>
. Since it also works with a single auto-closing <slot />
, I guess you are referring to another code...
from astro.
@ArmandPhilippot sorry, I can't share that part of the code with you, just was wondering if anybody else had an issue with that
from astro.
Related Issues (20)
- ViewTransitions reset scroll position after a form submission HOT 2
- Astro + React - Conditional Render HOT 1
- Experimental rewriting of POST request does not work HOT 3
- Container API usage within an Astro project fails to build when using pnpm HOT 2
- Repo can't be opened on GitHub codespaces HOT 1
- MDX cannot be used with the Container API HOT 1
- View Transitions Breaking AlpineJs `alpine:init` Event HOT 6
- Invalid MIME type in Picture component HOT 2
- Assets imported through seed files points to incorrect URL in prod
- [Container API] Unable to pass props to container.renderToString HOT 1
- Astro:db Seed File Fails to be Loaded | "Failed to load url" HOT 2
- Updating to [email protected] throws errors HOT 3
- Astro update check breaks `astro dev` if offline HOT 2
- `<a>` as first element inside component breaks layout HOT 1
- style define:vars not working on child component HOT 1
- shikiConfig not applying to Code components outside markdown HOT 6
- Base does not change href value in anchors. HOT 5
- lit client-shim uses deprecated apis, throws page speed error HOT 4
- Relative paths configuration is broken HOT 3
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 astro.