UNPKG

766 BTypeScriptView Raw
1import * as React from "react";
2import { AbstractPureComponent } from "../../common";
3import { type TabId, type TabProps } from "./tab";
4import type { TabsProps } from "./tabs";
5import { type TabTitleProps } from "./tabTitle";
6export interface TabPanelProps extends Pick<TabProps, "className" | "id" | "panel">, Pick<TabsProps, "renderActiveTabPanelOnly" | "selectedTabId">, Pick<TabTitleProps, "parentId"> {
7 /**
8 * Used for setting visibility. This `TabPanel` will be visibile when `selectedTabId === id`, with proper accessibility attributes set.
9 */
10 selectedTabId: TabId | undefined;
11}
12/**
13 * Wraps the passed `panel`.
14 */
15export declare class TabPanel extends AbstractPureComponent<TabPanelProps> {
16 render(): React.JSX.Element | undefined;
17}