Skip to content

TabsProps beta ​

Interface of @v12-engine/client/kit

ts
export interface TabsProps<T extends string>

What a Tabs is given: the tabs, the one shown and what is under each

Members ​

ark ​

ts
ark?: Partial<Omit<ArkTabs.RootProps, 'value' | 'children' | 'class'>>;

The rest of Ark's tabs, which it is (activationMode, loopFocus...): Ark's own, not the kit's to promise

children ​

ts
children: (id: T) => JSX.Element;

What is under a tab: made when it is shown, gone when another is

class ​

ts
class?: string;

CSS classes added to the whole tabs element

onValue ​

ts
onValue?: (id: T) => void;

Told the id of the tab picked

orientation ​

ts
orientation?: 'horizontal' | 'vertical';

Down the side, the arrows up and down going through them, or along the top (when left out)

tabs ​

ts
tabs: readonly {
        id: T;
        label: JSX.Element;
        disabled?: boolean;
        tip?: string;
    }[];

Each tab: its id, what it says, its tooltip (what is under it)

value ​

ts
value?: T;

The one shown, said from outside (with onValue); by itself, the first to begin with, when left out