UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

25 lines (24 loc) 1.11 kB
import React from "react"; import { TabsProps as BlueprintTabsProps } from "@blueprintjs/core"; import { TestableComponent } from "../interfaces"; import { TabProps } from "./Tab"; export interface TabsProps extends TestableComponent, Omit<BlueprintTabsProps, "vertical" | "large" | "animate"> { children?: React.ReactNode; /** * Data structure containing all tabs, including their titles and content panels. * Currently it is not possible to add `Tab` elements direct as children elements to the `<Tabs>` container. */ tabs?: TabProps[]; /** * Allow scrollbars on the tabs header. * Otherwise they will be shrinked if not enough space. */ allowScrollbars?: boolean; /** * If set then a `div` element is used as wrapper. * It uses the attributes given via this property. */ wrapperProps?: React.HTMLAttributes<HTMLDivElement>; } export declare const Tabs: ({ tabs, children, className, allowScrollbars, "data-test-id": dataTestId, "data-testid": dataTestid, wrapperProps, ...restProps }: TabsProps) => React.JSX.Element; export default Tabs;