UNPKG

@tiiqu/ui

Version:

A customizable, accessible, and developer-friendly React UI component library powered by Tailwind CSS, TypeScript, and Vite

10 lines (9 loc) 504 B
import { ReactNode } from 'react'; export type AccordionProps<T extends Record<string, unknown>> = { data: T[]; renderTitle: (item: T, index: number) => ReactNode; renderContent: (item: T, index: number) => ReactNode; className?: string; getKey?: (item: T, index: number) => string | number; }; export declare const Accordion: <T extends Record<string, unknown>>({ data, renderTitle, renderContent, className, getKey, }: AccordionProps<T>) => import("react/jsx-runtime").JSX.Element;