@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
24 lines (23 loc) • 878 B
TypeScript
/**
* TabContainer module.
* @module @massds/mayflower-react/TabContainer
* @requires module:@massds/mayflower-assets/scss/03-organisms/tab-container
*/
import React from 'react';
export interface TabContainerProps {
/** When true, the styles of the container changes to drop borders around each tab. */
nested?: boolean;
/** The numerical index of which tab should default to be open, starting at 0. */
defaultTab?: number;
/** A callback function for a tab change, receives the tab's id and children */
onTabChange?(...args: unknown[]): unknown;
/** Children passed to tab container. */
children?: React.ReactNode;
}
declare class TabContainer extends React.Component<TabContainerProps> {
constructor(props: any);
componentDidMount(): void;
setActiveTab: (tabId: any) => void;
render(): any;
}
export default TabContainer;