goobs-frontend
Version:
A comprehensive React-based libary for building modern web applications
32 lines • 986 B
TypeScript
import { default as React, FC, ReactNode } from 'react';
export interface AccordionProps {
summary: ReactNode;
details?: ReactNode;
expanded?: boolean;
defaultExpanded?: boolean;
onChange?: (event: React.SyntheticEvent, expanded: boolean) => void;
styles?: {
disabled?: boolean;
theme?: string;
level?: number;
padding?: string;
borderRadius?: string;
backgroundColor?: string;
summaryBackgroundColor?: string;
summaryColor?: string;
outline?: string | boolean;
levelIndentBase?: number;
levelIndentIncrement?: number;
borderColor?: string;
borderWidth?: string;
marginBottom?: string;
};
level?: number;
type?: 'accordion' | 'menu';
onClick?: (event: React.SyntheticEvent) => void;
href?: string;
isActive?: boolean;
}
declare const Accordion: FC<AccordionProps>;
export default Accordion;
//# sourceMappingURL=index.d.ts.map