The Controlled example from the Tabs docs.
npx shadcn@latest add @hextaui/tabs-controlled
tabs-controlled