@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
36 lines (35 loc) • 1.54 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
import type { HeadingProps } from '../Heading/Heading';
export type AccordionProps = {
/**
* The hierarchical level of this Accordion’s Section Headings within the document.
* There is no default value; determine the correct level for each instance.
* Note: this intentionally does not change the font size.
**/
headingLevel: HeadingProps['level'];
/** The HTML element to use for each Accordion Section. */
sectionAs?: 'div' | 'section';
} & PropsWithChildren<HTMLAttributes<HTMLDivElement>>;
export declare const Accordion: import("react").ForwardRefExoticComponent<{
/**
* The hierarchical level of this Accordion’s Section Headings within the document.
* There is no default value; determine the correct level for each instance.
* Note: this intentionally does not change the font size.
**/
headingLevel: HeadingProps["level"];
/** The HTML element to use for each Accordion Section. */
sectionAs?: "div" | "section";
} & HTMLAttributes<HTMLDivElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLDivElement>> & {
Section: import("react").ForwardRefExoticComponent<{
expanded?: boolean;
label: string;
} & HTMLAttributes<HTMLElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLDivElement>>;
};