UNPKG

@aveonline/ui-react

Version:

Home base for Aveonline design system - ecosystem react

46 lines (45 loc) 1.03 kB
/// <reference types="react" /> export interface ITab { children?: string | number | JSX.Element; isDisabled?: boolean; total?: number; showIcon?: boolean; description?: string; /** * option for fitted variant with total */ colorTotal?: 'neutral' | 'critical'; image?: string; } export declare type IStateTab = { selected: boolean; isDisabled: boolean | undefined; }; export interface ITabs { /** * Base structure for render content on the tab */ tabs: Record<string, ITab>; /** * Option tabs availables */ variant?: 'default' | 'fitted'; /** * Add default index tab */ defaultIndex?: number; /** * Return index tab active */ onChange?: (index: number) => void; /** * Size width border bottom tabs */ size?: 'sm' | 'full'; setActive?: (value: boolean) => void; active?: boolean; activeBlue?: boolean; tittle?: string; useT?: boolean; _t?: (text: string) => string; }