import * as React from "react"; import { Tabs, Tab } from "baseui/tabs-motion"; export default function Example() { const [activeKey, setActiveKey] = React.useState(0); const tabListRef = React.useRef(); const firstTabRef = React.useRef(); const firstTabPanelRef = React.useRef(); return ( setActiveKey(activeKey)} overrides={{ TabList: { props: { ref: tabListRef } }, }} > I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. ); }