mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
chore: lift components folder
This commit is contained in:
parent
76df51674d
commit
2200b29b92
301 changed files with 57 additions and 76 deletions
21
src/Accordion/Accordion.svelte
Normal file
21
src/Accordion/Accordion.svelte
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script>
|
||||
export let align = "end"; // "start" | "end"
|
||||
export let skeleton = false;
|
||||
|
||||
import AccordionSkeleton from "./Accordion.Skeleton.svelte";
|
||||
</script>
|
||||
|
||||
{#if skeleton}
|
||||
<AccordionSkeleton {...$$restProps} />
|
||||
{:else}
|
||||
<ul
|
||||
class:bx--accordion={true}
|
||||
class="bx--accordion--{align}"
|
||||
{...$$restProps}
|
||||
on:click
|
||||
on:mouseover
|
||||
on:mouseenter
|
||||
on:mouseleave>
|
||||
<slot />
|
||||
</ul>
|
||||
{/if}
|
Loading…
Add table
Add a link
Reference in a new issue