UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

35 lines (34 loc) 1.11 kB
import React from 'react'; import type { SpacingProps } from '../space/types'; export type CustomContentTitle = Record<string, unknown> | React.ReactNode | ((...args: any[]) => any); export type CustomContentChildren = React.ReactNode | ((...args: any[]) => any); export interface CustomContentProps extends Omit<React.HTMLProps<HTMLElement>, 'title' | 'children'>, SpacingProps { displayName?: string; title?: CustomContentTitle; hash?: string; selected?: boolean; disabled?: boolean; id?: string; key?: string | number; children?: CustomContentChildren; className?: string; } /** Like: <Tabs> <Tabs.Content title="first" selected disabled>first</Tabs.Content> <Tabs.Content title="second">second</Tabs.Content> </Tabs> */ export default class CustomContent extends React.PureComponent<CustomContentProps> { static defaultProps: { displayName: string; title: any; hash: any; selected: any; disabled: any; children: any; className: any; }; render(): import("react/jsx-runtime").JSX.Element; }