UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

27 lines (24 loc) 671 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import { ExpandableProps } from './Expandable.mjs'; type ContentType = { type: 'markdown'; value: string; } | { type: 'custom'; value: ReactNode; }; type FAQItem = Pick<ExpandableProps, 'isExpanded' | 'className'> & { id: string; title: string; content: ContentType; }; type FAQSectionProps = { entries: FAQItem[]; expandableClassName?: string; }; /** * Description */ declare const FAQSection: ({ entries, expandableClassName }: FAQSectionProps) => react_jsx_runtime.JSX.Element; export { type FAQItem, FAQSection, type FAQSectionProps };