chore: update to latest astro ink version
This commit is contained in:
13
src/components/mdoc/Tabs/TabPanel.svelte
Normal file
13
src/components/mdoc/Tabs/TabPanel.svelte
Normal file
@@ -0,0 +1,13 @@
|
||||
<script>
|
||||
import { getContext } from 'svelte';
|
||||
import { TABS } from './Tabs.svelte';
|
||||
|
||||
const panel = {};
|
||||
const { registerPanel, selectedPanel } = getContext(TABS);
|
||||
|
||||
registerPanel(panel);
|
||||
</script>
|
||||
|
||||
{#if $selectedPanel === panel}
|
||||
<slot></slot>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user