@starter-ui/core
Version:
This is a UI Components built with the utility classes from Tailwind CSS.
28 lines (27 loc) • 1.05 kB
TypeScript
import { PropsWithChildren } from 'react';
interface Props {
id?: string;
mode?: 'single' | 'multiple';
selectedKeys?: string[];
disabledKeys?: string[];
showDivider?: boolean;
className?: string;
onChange?: (keys: string[]) => void;
}
declare const Accordion: {
({ id, mode, selectedKeys, disabledKeys, showDivider, className, children, onChange, }: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element;
Item: ({ id, loading, className, children }: PropsWithChildren<{
id?: string;
className?: string;
loading?: boolean;
}>) => import("react/jsx-runtime").JSX.Element;
Header: ({ className, subTitle, children, onClick, }: PropsWithChildren<{
className?: string;
subTitle?: import('react').ReactNode;
onClick?: () => void;
}>) => import("react/jsx-runtime").JSX.Element;
Content: ({ className, children }: PropsWithChildren<{
className?: string;
}>) => import("react/jsx-runtime").JSX.Element;
};
export default Accordion;