Accordion
import { KbqAccordionModule } from '@koobiq/components/accordion';

Selector: [kbqAccordionHeader]

Properties
Name Description
item: KbqAccordionItem

Selector: kbq-accordion-header, [kbq-accordion-header]

Selector: kbq-accordion-content, [kbq-accordion-content]

Selector: [kbqAccordionTrigger]

Methods
onClick
Fires when trigger clicked

Selector: [kbqAccordionContent]

Exported as: kbqAccordionContent
Methods
disableAnimation
enableAnimation
toggle

Selector: kbq-accordion-trigger, [kbq-accordion-trigger]

Properties
Name Description
isFill: boolean
isHug: boolean
isHugSpaceBetween: boolean
Methods
disableAnimation
enableAnimation

Selector: kbq-accordion-item, [kbq-accordion-item]

Properties
Name Description
@Input()
disabled: boolean
Whether the AccordionItem is disabled.
@Input()
expanded: boolean
Whether the AccordionItem is expanded.
@Input()
value: string
@Output('closed')
closed: OutputEmitterRef
Event emitted every time the AccordionItem is closed.
@Output('opened')
opened: OutputEmitterRef
Event emitted every time the AccordionItem is opened.
dataState: KbqAccordionItemState
id: string The unique AccordionItem id.
orientation: KbqAccordionOrientation
Methods
close
Sets the expanded state of the accordion item to false.
disableAnimation
enableAnimation
focus
getState
open
Sets the expanded state of the accordion item to true.
toggle
Toggles the expanded state of the accordion item.

Selector: kbq-accordion, [kbq-accordion]

Properties
Name Description
@Input()
collapsible: InputSignal
@Input()
defaultValue: string | string[]
The value of the item to expand when initially rendered and type is "single". Use when you do not need to control the state of the items.
@Input()
disabled: InputSignalWithTransform
Whether the Accordion is disabled.
@Input()
orientation: InputSignal
The orientation of the accordion.
@Input()
type: InputSignal
Determines whether one or multiple items can be opened at the same time.
@Input()
value: string | string[]
The controlled value of the item to expand
@Input()
variant: InputSignal
@Output('onValueChange')
onValueChange: OutputEmitterRef
hasSavedState: boolean
id: string
isMultiple: boolean
useStateSaving: boolean Specifies whether the accordion saves its states. Default is false
Methods
closeAll
Closes all enabled accordion items.
openAll
Opens all enabled accordion items in an accordion where multi is enabled.
type KbqAccordionItemState = 'open' | 'closed';
type KbqAccordionType = 'single' | 'multiple';
type KbqAccordionOrientation = 'horizontal' | 'vertical';
Вопросы и предложения по документации
Если у вас есть вопросы или вы хотите внести свой вклад в написание документации, пожалуйста, создайте issue в нашем репозитории на GitHub.