UNPKG

@hhgtech/hhg-components

Version:
26 lines (25 loc) 1.03 kB
import React, { ReactNode } from 'react'; import { Tabs as MantineTabs, TabsProps as MantineTabsProps } from '@mantine/core'; type TabItemProps = { value: string; text: string; content: ReactNode; }; export type TabsProps = { children?: React.ReactNode; variant?: 'inline'; dataList?: TabItemProps[]; tabProps?: typeof MantineTabs.Tab; TabComponentDisplay?: any; panelProps?: typeof MantineTabs.Panel; listProps?: typeof MantineTabs.List; startPadding?: number; } & Omit<MantineTabsProps, 'children'>; export declare const _Tabs: ({ variant, value, styles, children, dataList, tabProps, listProps, panelProps, TabComponentDisplay, startPadding, defaultValue, ...rest }: TabsProps) => React.JSX.Element; export interface CompoundedComponent extends React.ForwardRefExoticComponent<TabsProps> { List: typeof MantineTabs.List; Tab: typeof MantineTabs.Tab; Panel: typeof MantineTabs.Panel; } declare const Tabs: CompoundedComponent; export { Tabs };