@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
30 lines (29 loc) • 1.09 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
export type AccordionSectionProps = {
/** Whether the content is displayed initially. */
defaultExpanded?: boolean;
/**
* Whether the content is displayed initially.
* @deprecated Use the `defaultExpanded` prop instead. Will be removed on or after 2026-10-20.
*/
expanded?: boolean;
/** The heading text. */
label: string;
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
export declare const AccordionSection: import("react").ForwardRefExoticComponent<{
/** Whether the content is displayed initially. */
defaultExpanded?: boolean;
/**
* Whether the content is displayed initially.
* @deprecated Use the `defaultExpanded` prop instead. Will be removed on or after 2026-10-20.
*/
expanded?: boolean;
/** The heading text. */
label: string;
} & HTMLAttributes<HTMLElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<HTMLDivElement>>;