@confi/conflux-react-ui-test-package
Version:
Modern and minimalist React UI library.
23 lines (22 loc) • 753 B
TypeScript
import React from 'react';
import TabsItem from './tabs-item';
interface Props {
initialValue?: string;
value?: string;
hideDivider?: boolean;
onChange?: (val: string) => void;
className?: string;
}
declare const defaultProps: {
className: string;
hideDivider: boolean;
};
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
export declare type TabsProps = Props & typeof defaultProps & NativeAttrs;
declare type TabsComponent<P = {}> = React.FC<P> & {
Item: typeof TabsItem;
Tab: typeof TabsItem;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: TabsComponent<ComponentProps>;
export default _default;