1 | import type { AccordionItemProps as RadixAccordionItemProps, AccordionMultipleProps, AccordionSingleProps } from '@radix-ui/react-accordion';
|
2 | import type { BrighteTheme } from '@spark-web/theme';
|
3 | import type { DataAttributeMap } from '@spark-web/utils/internal';
|
4 | import type { RefAttributes } from 'react';
|
5 | export declare type AccordionItemProps = Pick<RadixAccordionItemProps, 'children' | 'value'> & {
|
6 |
|
7 | data?: DataAttributeMap;
|
8 |
|
9 | headingElement?: 'h2' | 'h3' | 'h4';
|
10 |
|
11 | label: string;
|
12 |
|
13 | level?: '1' | '2' | '3' | '4';
|
14 |
|
15 | background?: keyof BrighteTheme['color']['background'];
|
16 | };
|
17 | export declare function AccordionItem({ headingElement, background, children, data, label, level, value, }: AccordionItemProps): JSX.Element;
|
18 | export declare type AccordionProps = (Omit<AccordionSingleProps, 'asChild'> & RefAttributes<HTMLDivElement>) | (Omit<AccordionMultipleProps, 'asChild'> & RefAttributes<HTMLDivElement>);
|
19 | export declare function Accordion({ children, ...rest }: AccordionProps): JSX.Element;
|