mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(accordion): add "sm", "xl" size variants to Accordion and AccordionSkeleton
This commit is contained in:
parent
933055c9ce
commit
cb80c7d15b
7 changed files with 50 additions and 14 deletions
16
types/index.d.ts
vendored
16
types/index.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue