chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -0,0 +1,19 @@
<script>
export let id = "ccs-" + Math.random().toString(36);
import { getContext } from "svelte";
const { selectedContent, addContent } = getContext("Tabs");
addContent({ id });
$: selected = $selectedContent === id;
</script>
<div
aria-hidden={!selected}
hidden={!selected}
class:bx--tab-content={true}
class={$$restProps.class}
style={$$restProps.style}>
<slot />
</div>