@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
23 lines (22 loc) • 983 B
TypeScript
import { BoxProps, CompoundStylesApiProps, ElementProps, Factory } from '../../../core';
export type AccordionPanelStylesNames = 'panel' | 'content';
export interface AccordionPanelProps extends BoxProps, CompoundStylesApiProps<AccordionPanelFactory>, ElementProps<'div'> {
/** Called when the panel animation completes */
onTransitionEnd?: () => void;
/** Called when the panel animation starts */
onTransitionStart?: () => void;
/** If set, overrides the Accordion-level `keepMounted` value. When undefined (default), uses Accordion's `keepMounted` setting. */
keepMounted?: boolean;
}
export type AccordionPanelFactory = Factory<{
props: AccordionPanelProps;
ref: HTMLDivElement;
stylesNames: AccordionPanelStylesNames;
compound: true;
}>;
export declare const AccordionPanel: import("../../..").MantineComponent<{
props: AccordionPanelProps;
ref: HTMLDivElement;
stylesNames: AccordionPanelStylesNames;
compound: true;
}>;