UNPKG

@findnlink/neuro-ui

Version:
28 lines (27 loc) 928 B
import { HTMLAttributes, ReactNode } from 'react'; import { UtilInterface } from '../../util/interfaces'; export interface TabsProps extends HTMLAttributes<HTMLDivElement>, UtilInterface { children: ReactNode; id?: string; hover?: boolean; direction?: 'row' | 'column'; } export interface TabsHeaderProps extends HTMLAttributes<HTMLUListElement>, UtilInterface { children: ReactNode; } export interface TabProps extends HTMLAttributes<HTMLDivElement>, UtilInterface { children: string | ReactNode; href?: string; onClick?: (e: any) => void; index: number; } export interface TabsContentProps extends HTMLAttributes<HTMLDivElement>, UtilInterface { children: string[] | ReactNode[]; } export interface TabsContextProps { selectedIndex: number | null; setSelectedIndex: (selectedIndex: number | null) => void; hover: boolean; id: string; direction?: 'row' | 'column'; }