UNPKG

@redocly/theme

Version:

Shared UI components lib

25 lines (24 loc) 749 B
import React from 'react'; import type { JSX } from 'react'; export declare enum TabsSize { SMALL = "small", MEDIUM = "medium" } export type TabItemProps = { label: string; disable?: boolean; onClick?: () => void; children: React.ReactNode; icon?: React.ReactNode | string; }; type TabsProps = { id?: string; children: React.ReactElement<TabItemProps>[]; className?: string; size: TabsSize; initialTab?: string; activeTab?: string; }; export declare function Tabs({ id, children, className, size, initialTab: propInitialTab, activeTab: controlledActiveTab, }: TabsProps): JSX.Element; export declare const TabContent: import("styled-components").StyledComponent<"div", any, {}, never>; export {};