UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

25 lines (24 loc) 978 B
import type { HTMLProps, ReactNode } from 'react'; import type { SpacingProps } from '../../shared/types'; export type TabsCustomContentTitle = Record<string, unknown> | ReactNode | (() => ReactNode); export type TabsCustomContentChildren = ReactNode | ((...args: any[]) => ReactNode); export type TabsCustomContentProps = { displayName?: string; title?: TabsCustomContentTitle; hash?: string; selected?: boolean; disabled?: boolean; id?: string; key?: string | number; children?: TabsCustomContentChildren; className?: string; } & Omit<HTMLProps<HTMLElement>, 'title' | 'children' | 'ref' | 'onAnimationStart' | 'onAnimationEnd'> & SpacingProps; /** Like: <Tabs> <Tabs.Content title="first" selected disabled>first</Tabs.Content> <Tabs.Content title="second">second</Tabs.Content> </Tabs> */ declare function CustomContent(props: TabsCustomContentProps): import("react/jsx-runtime").JSX.Element; export default CustomContent;