@olleemilsson/flowbite-react
Version:
<div align="center"> <h1>:construction: flowbite-react (unreleased) :construction:</h1> <p> <a href="https://flowbite-react.com"> <img alt="Flowbite - Tailwind CSS components" width="350" src=".github/assets/flowbite-react-github.png"> <
35 lines (34 loc) • 1.15 kB
TypeScript
import type { ComponentProps, FC, PropsWithChildren, ReactElement } from 'react';
import { FlowbiteBoolean } from '../Flowbite/FlowbiteTheme';
import type { AccordionPanelProps } from './AccordionPanel';
export interface FlowbiteAccordionTheme {
base: string;
content: {
base: string;
};
flush: FlowbiteBoolean;
title: {
arrow: {
base: string;
open: {
off: string;
on: string;
};
};
base: string;
flush: FlowbiteBoolean;
heading: string;
open: FlowbiteBoolean;
};
}
export interface AccordionProps extends PropsWithChildren<ComponentProps<'div'>> {
alwaysOpen?: boolean;
arrowIcon?: FC<ComponentProps<'svg'>>;
children: ReactElement<AccordionPanelProps> | ReactElement<AccordionPanelProps>[];
flush?: boolean;
}
export declare const Accordion: FC<AccordionProps> & {
Panel: FC<AccordionPanelProps>;
Title: FC<import("./AccordionTitle").AccordionTitleProps>;
Content: FC<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
};