@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
21 lines (20 loc) • 657 B
TypeScript
import React from 'react';
export interface TabProps {
/** The text of the tab. */
title: string;
/** A callback function ran after the tab has been clicked. */
handleClick?(...args: unknown[]): unknown;
/** Sets if the tab is the currently active tab or not. */
active?: boolean;
/** The unique identifier set by TabContainer. */
tabIdent?: string;
/** Children passed to tab container (tab content) */
children?: React.ReactNode;
/** The tabs ref */
tabRef?: object | any;
}
declare class Tab extends React.Component<TabProps> {
handleKeyDown: (e: any) => void;
render(): any;
}
export default Tab;