feat(accordion): add "sm", "xl" size variants to Accordion and AccordionSkeleton

This commit is contained in:
Eric Liu 2020-10-15 15:48:48 -07:00
commit cb80c7d15b
7 changed files with 50 additions and 14 deletions

16
types/index.d.ts vendored
View file

@ -18,6 +18,11 @@ export class Accordion extends CarbonSvelteComponent {
*/
align?: "start" | "end";
/**
* Specify the size of the accordion
*/
size?: "sm" | "xl";
/**
* Set to `true` to display the skeleton state
* @default false
@ -61,6 +66,17 @@ export class AccordionSkeleton extends CarbonSvelteComponent {
*/
count?: number;
/**
* Specify alignment of accordion item chevron icon
* @default "end"
*/
align?: "start" | "end";
/**
* Specify the size of the accordion
*/
size?: "sm" | "xl";
/**
* Set to `false` to close the first accordion item
* @default true