```js
function Example() {
    const TABS = [
        {
            label: "Tab label 1",
            id: "1",
        },
        {
            label: "Tab label 2",
            id: "2",
        },
        {
            label: "Tab label 3",
            id: "3",
        },
    ];

    const [selectedTab, setSelectedTab] = React.useState("2");

    return (
        <div>
            <div style={{display: "flex", justifyContent: "center"}}>
                <Tabs tabs={TABS} selectedTabId={selectedTab} selectTab={setSelectedTab} />
            </div>
        </div>
    );
}

<Example />;
```
