@blueprintjs/core
Version:
Core styles & components
18 lines (17 loc) • 777 B
TypeScript
import * as React from "react";
import { ITab2Props, TabId } from "./tab2";
export interface ITabTitleProps extends ITab2Props {
/** Handler invoked when this tab is clicked. */
onClick: (id: TabId, e: React.MouseEvent<HTMLElement>) => void;
/** ID of the parent `Tabs` to which this tab belongs. Used to generate ID for ARIA attributes. */
parentId: TabId;
/** Whether the tab is currently selected. */
selected: boolean;
}
export declare class TabTitle extends React.Component<ITabTitleProps, {}> {
static displayName: string;
render(): JSX.Element;
private handleClick;
}
export declare function generateTabPanelId(parentId: TabId, tabId: TabId): string;
export declare function generateTabTitleId(parentId: TabId, tabId: TabId): string;