@tolokoban/ui
Version:
React components with theme
22 lines • 907 B
TypeScript
import * as React from "react";
import { ViewTabProps } from "../Tab";
import { DimensionStyleProps } from "../../theme/styles/dimension";
import { ColorStyleProps } from "../../theme/styles/color";
export type ViewTabsProps = ColorStyleProps & DimensionStyleProps & {
className?: string;
/** Key of the active Tab. */
value?: string;
/**
* * `horizontal`: the tabs' headers are on the top.
* * `vertical`: the tabs' headers are on the left.
*/
orientation?: "horizontal" | "vertical";
/**
* Callback to call when a new tab is active.
* @param value Key of the newly activated tab.
*/
onChange?(this: void, value?: string): void;
children: React.ReactElement<ViewTabProps> | React.ReactElement<ViewTabProps>[];
};
export declare function ViewTabs(props: ViewTabsProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=Tabs.d.ts.map