UNPKG

@payfit/unity-components

Version:

60 lines (59 loc) 1.35 kB
import { PropsWithChildren, ReactNode } from 'react'; import { VariantProps } from 'tailwind-variants'; declare const collapsible: import('tailwind-variants').TVReturnType<{ isExpanded: { true: { icon: string; }; false: { icon: string; }; }; }, { base: string[]; heading: string; button: string[]; title: string; icon: string; content: string; }, undefined, { isExpanded: { true: { icon: string; }; false: { icon: string; }; }; }, { base: string[]; heading: string; button: string[]; title: string; icon: string; content: string; }, import('tailwind-variants').TVReturnType<{ isExpanded: { true: { icon: string; }; false: { icon: string; }; }; }, { base: string[]; heading: string; button: string[]; title: string; icon: string; content: string; }, undefined, unknown, unknown, undefined>>; export interface CollapsibleProps extends PropsWithChildren<VariantProps<typeof collapsible>> { children: ReactNode; } declare const Collapsible: { ({ children, ...props }: CollapsibleProps): import("react/jsx-runtime").JSX.Element; displayName: string; }; export { Collapsible };