You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
exportdefaultfunctionDropdown(props){return(<>
HELLO WORLD
<details><summary>{props.heading}</summary>{JSON.stringify(props,null,2)}</details></>)}
Inside the index.md:
---title: It's Slinkity timelayout: layout---
{% island 'Dropdown.jsx' %}
{% prop 'heading', 'Full disclosure' %}
<p>"details" and "summary" are kinda confusing element names</p>
{% endisland %}
If you're reading this from your browser... congrats! You just built (or dev server-ed) you're first Slinkity site 👊
Additional context
The EleventyRenderPlugin was intended to test our the renderTemplate function. This still doesn't work without it. I added the snippet to the layout.njk file as well in case it was something with markdown, but same issue.
Great project! Just learned about it and I'm probably doing something wrong, but hope to explore it further!
The text was updated successfully, but these errors were encountered:
Describe the bug
Following the examples on https://slinkity.dev/docs/component-shortcodes/ the
children
prop is not getting passed to the island as expected.To Reproduce
Steps to reproduce the behavior:
_islands/Dropdown.jsx
index.md
:heading
props showExpected behavior
The children prop gets passed to the island.
(please complete the following information):
Additional context
The EleventyRenderPlugin was intended to test our the
renderTemplate
function. This still doesn't work without it. I added the snippet to the layout.njk file as well in case it was something with markdown, but same issue.Great project! Just learned about it and I'm probably doing something wrong, but hope to explore it further!
The text was updated successfully, but these errors were encountered: