UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

25 lines (24 loc) 1.04 kB
/** * Web Accordion Component * */ import type { HTMLProps, ReactNode, RefObject } from 'react'; import type { SpacingProps } from '../../shared/types'; export type AccordionContentProps = Omit<HTMLProps<HTMLElement>, 'onAnimationStart' | 'onAnimationEnd' | 'children'> & SpacingProps & { instance?: RefObject<unknown>; /** * If set to `true` the content will be present, even when the accordion is not expanded. In standalone tertiary mode, the content region stays mounted to preserve `aria-controls`. */ keepInDOM?: boolean; /** * If set to `true`, the open and close animation will be omitted in standalone tertiary mode. */ noAnimation?: boolean; /** * Provides a label for the content region in standalone tertiary mode. It is applied to both `aria-label` and `title`. */ title?: string; className?: string; children?: ReactNode | (() => ReactNode); }; export default function AccordionContent(props: AccordionContentProps): import("react/jsx-runtime").JSX.Element;