mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
feat(accordion): add disabled prop
This commit is contained in:
parent
cb80c7d15b
commit
ebf882cff4
5 changed files with 81 additions and 2 deletions
12
types/index.d.ts
vendored
12
types/index.d.ts
vendored
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue