import { Accessibility } from '../../types'; /** * @description * Adds accessibility attributed to implement the Accordion design pattern. * Adds 'aria-disabled' to the 'content' slot with a value based on active and canBeCollapsed props. * Adds role='heading' and aria-level='3' if the element type is not a header. * * @specification * Adds attribute 'role=button' to 'content' slot. * Adds attribute 'tabIndex=0' to 'content' slot. * Adds attribute 'aria-expanded=true' based on the property 'active' to 'content' slot. * Adds attribute 'aria-controls=content-id' based on the property 'accordionContentId' to 'content' slot. * Triggers 'performClick' action with 'Enter' or 'Spacebar' on 'content'. */ declare const accordionTitleBehavior: Accessibility; export default accordionTitleBehavior; declare type AccordionTitleBehaviorProps = { /** Element type. */ as?: string; /** Whether or not the title is in the open state. */ active?: boolean; /** If at least one panel needs to stay active and this title does not correspond to the last active one. */ canBeCollapsed?: boolean; /** Id of the content it owns. */ accordionContentId?: string; };