UNPKG

@uva-glass/component-library

Version:

React components UvA

12 lines (11 loc) 515 B
import { ReactNode } from 'react'; export interface AccordionProps { /** Clickable title (always visible). */ title: ReactNode; /** Main content (hidden when expanded is false). */ content: ReactNode; /** Indicator if Accordion should be expanded by default.*/ expanded?: boolean; } /** A controller for accordion display toggling of content with click on a title. */ export declare const Accordion: ({ title, content, expanded }: AccordionProps) => import("react/jsx-runtime").JSX.Element;