Skip to content

Profectus / features/tabs/tabFamily

features/tabs/tabFamily ​

This feature represents a group of Tabs that can be switched between by the player.

ts
const illuminatiTabs = createTabFamily({
    first: () => ({
        tab: () => (
            <>
                first tab
                {render(upgrade)}
            </>
        ),
        display: "first"
    }),
    second: () => ({
        tab: () => (
            <>
                second tab
                {render(repeatable)}
            </>
        ),
        display: "second"
    })
});

If the tab family is the only thing being rendererd in a layer, the tabs will hug the borders of that layer, rather than obey the usual margins.

Index ​

Interfaces ​

Variables ​

Functions ​