UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

28 lines (27 loc) 1.17 kB
import type { ComponentProps, FC, PropsWithChildren, ReactElement } from 'react'; import type { DeepPartial, FlowbiteBoolean } from '../../'; import type { FlowbiteAccordionComponentTheme } from './AccordionContent'; import type { AccordionPanelProps } from './AccordionPanel'; import type { FlowbiteAccordionTitleTheme } from './AccordionTitle'; export interface FlowbiteAccordionTheme { root: FlowbiteAccordionRootTheme; content: FlowbiteAccordionComponentTheme; title: FlowbiteAccordionTitleTheme; } export interface FlowbiteAccordionRootTheme { base: string; flush: FlowbiteBoolean; } export interface AccordionProps extends PropsWithChildren<ComponentProps<'div'>> { alwaysOpen?: boolean; arrowIcon?: FC<ComponentProps<'svg'>>; children: ReactElement<AccordionPanelProps> | ReactElement<AccordionPanelProps>[]; flush?: boolean; collapseAll?: boolean; theme?: DeepPartial<FlowbiteAccordionTheme>; } export declare const Accordion: FC<AccordionProps> & { Panel: FC<AccordionPanelProps>; Title: FC<import("./AccordionTitle").AccordionTitleProps>; Content: FC<import("./AccordionContent").AccordionContentProps>; };