feat(accordion): add disabled prop

This commit is contained in:
Eric Liu 2020-10-15 16:15:17 -07:00
commit ebf882cff4
5 changed files with 81 additions and 2 deletions

12
types/index.d.ts vendored
View file

@ -23,6 +23,12 @@ export class Accordion extends CarbonSvelteComponent {
*/
size?: "sm" | "xl";
/**
* Set to `true` to disable the accordion
* @default false
*/
disabled?: boolean;
/**
* Set to `true` to display the skeleton state
* @default false
@ -48,6 +54,12 @@ export class AccordionItem extends CarbonSvelteComponent {
*/
open?: boolean;
/**
* Set to `true` to disable the accordion item
* @default false
*/
disabled?: boolean;
/**
* Specify the ARIA label for the accordion item chevron icon
* @default "Expand/Collapse"