reablocks
Version:
Component library for React
29 lines (28 loc) • 826 B
TypeScript
import { default as React, FC } from 'react';
import { MotionNodeAnimationOptions } from 'motion/react';
import { CollapseTheme } from './CollapseTheme';
export interface CollapseProps extends Omit<Partial<HTMLDivElement>, 'children'> {
/**
* Whether the collapse is expanded or not.
*/
expanded?: boolean;
/**
* @deprecated Use animation configuration instead.
* Whether the collapse is animated or not.
* @default true
*/
animated?: boolean;
/**
* Animation configuration for the collapse.
*/
animation?: MotionNodeAnimationOptions;
/**
* Children to render.
*/
children?: React.ReactNode | (() => React.ReactNode);
/**
* Theme for the Collapse.
*/
theme?: CollapseTheme;
}
export declare const Collapse: FC<CollapseProps>;