feat(accordion): add size variants

This commit is contained in:
Eric Liu 2020-10-14 18:01:55 -07:00
commit 06fea29c4f
2 changed files with 37 additions and 1 deletions

View file

@ -5,6 +5,12 @@
*/
export let align = "end";
/**
* Specify the size of the accordion
* @type {"sm" | "lg"} [size]
*/
export let size = undefined;
/**
* Set to `true` to display the skeleton state
* @type {boolean} [skeleton=false]
@ -26,7 +32,9 @@
<ul
class:bx--accordion="{true}"
{...$$restProps}
class="bx--accordion--{align} {$$restProps.class}"
class="bx--accordion--{align}
{size && `bx--accordion--${size}`}
{$$restProps.class}"
on:click
on:mouseover
on:mouseenter