UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

25 lines (24 loc) 984 B
import React from 'react'; import type { SpacingProps } from '../../shared/types'; export type TabsCustomContentTitle = Record<string, unknown> | React.ReactNode | (() => React.ReactNode); export type TabsCustomContentChildren = React.ReactNode | ((...args: any[]) => React.ReactNode); export type TabsCustomContentProps = { displayName?: string; title?: TabsCustomContentTitle; hash?: string; selected?: boolean; disabled?: boolean; id?: string; key?: string | number; children?: TabsCustomContentChildren; className?: string; } & Omit<React.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;