mirror of
https://github.com/zoriya/v10.git
synced 2026-08-14 18:04:49 +00:00
feat(site): tabs (#144)
This commit is contained in:
@@ -12,4 +12,20 @@ const { framework } = Astro.params;
|
||||
const shouldRender = !frameworks || frameworks.includes(framework as SupportedFramework);
|
||||
---
|
||||
|
||||
{shouldRender && <slot />}
|
||||
{
|
||||
/*
|
||||
What I WANT to do is
|
||||
```
|
||||
{shouldRender && <slot />}
|
||||
```
|
||||
|
||||
But I'm running into some crazy problems with hydration.
|
||||
Putting client:load in one of these conditionals causes Astro to just give up hydrating the whole app for some reason.
|
||||
TODO: fix this
|
||||
|
||||
So, while I debug those... let's do this
|
||||
*/
|
||||
}
|
||||
<div class="contents" hidden={!shouldRender}>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -12,4 +12,20 @@ const { style } = Astro.params;
|
||||
const shouldRender = !styles || styles.includes(style as AnySupportedStyle);
|
||||
---
|
||||
|
||||
{shouldRender && <slot />}
|
||||
{
|
||||
/*
|
||||
What I WANT to do is
|
||||
```
|
||||
{shouldRender && <slot />}
|
||||
```
|
||||
|
||||
But I'm running into some crazy problems with hydration.
|
||||
Putting client:load in one of these conditionals causes Astro to just give up hydrating the whole app for some reason.
|
||||
TODO: fix this
|
||||
|
||||
So, while I debug those... let's do this
|
||||
*/
|
||||
}
|
||||
<div class="contents" hidden={!shouldRender}>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user