dmeditor
Version:
dmeditor is a block-style visual editor. Data is in json format.
17 lines (16 loc) • 671 B
TypeScript
import * as React from 'react';
import { TransitionProps } from 'react-transition-group/Transition';
import type { EntityTabsBlock } from './entity';
interface BaseTabsProps {
defaultActiveKey?: string | number;
activeKey?: string | number;
onSelect?: (key: string | number) => void;
children: React.ReactNode;
}
declare const BaseTabs: React.FC<BaseTabsProps>;
type TabPaneProps = Pick<TransitionProps, 'onEnter' | 'onEntered' | 'onEntering' | 'onExit' | 'onExited' | 'onExiting'> & EntityTabsBlock['meta'] & {
activeKey: string | number;
children: React.ReactNode;
};
declare const TabPane: React.FC<TabPaneProps>;
export { BaseTabs, TabPane };