UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

9 lines (8 loc) 578 B
import * as React from 'react'; import type { TabComponentElementType, TabComponentProps, TabLinkProps, TabProps } from "./types.js"; export declare function isTabComponentProps<T extends TabComponentElementType>(p: TabProps<T>): p is TabComponentProps<Exclude<T, undefined>>; export declare function isTabLinkProps<T extends TabComponentElementType>(p: TabProps<T>): p is TabLinkProps; /** * Finds the first Tab in the subtree (e.g. Tab wrapped in Tooltip) and returns it. */ export declare function getTabNodePropsFromReactNode(node: React.ReactNode): TabProps | undefined;