@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
33 lines (31 loc) • 1.48 kB
TypeScript
/// <reference types="../../index.d.ts" />
import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
import { FlipContext, Position, Scale, IconType, Appearance } from '../interfaces';
import { IconNameOrString } from '../calcite-icon/interfaces';
import { Accordion } from '../calcite-accordion/customElement.js';
import { RequestedItem } from './interfaces';
/**
* @slot - A slot for adding custom content, including nested `calcite-accordion-item`s.
* @slot [actions-end] - A slot for adding `calcite-action`s or content to the end side of the component's header.
* @slot [actions-start] - A slot for adding `calcite-action`s or content to the start side of the component's header.
*/
export declare class AccordionItem extends LitElement {
/** Specifies a description for the component. */
description: string;
/**
* When `true`, the component is expanded.
*
* @default false
*/
expanded: boolean;
/** Specifies heading text for the component. */
heading: string;
/** Specifies an icon to display at the end of the component. */
iconEnd: IconNameOrString;
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
iconFlipRtl: FlipContext;
/** Specifies an icon to display at the start of the component. */
iconStart: IconNameOrString;
/** Sets focus on the component. */
setFocus(): Promise<void>;
}