@cfxjs/react-ui
Version:
Modern and minimalist React UI library.
24 lines (23 loc) • 799 B
TypeScript
import React from 'react';
import CollapseGroup from './collapse-group';
interface Props {
title: string;
subtitle?: React.ReactNode | string;
defaultVisible?: boolean;
shadow?: boolean;
className?: string;
index?: number;
}
declare const defaultProps: {
className: string;
shadow: boolean;
defaultVisible: boolean;
};
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
export declare type CollapseProps = Props & typeof defaultProps & NativeAttrs;
declare type CollapseComponent<P = {}> = React.FC<P> & {
Group: typeof CollapseGroup;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: CollapseComponent<ComponentProps>;
export default _default;