"use client"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@azmr/ui/disclosure"; import { useUrlTab } from "@azmr/ui/hooks"; const VALUES = ["usage", "api"] as const; export default function TabsUrl() { const [tab, setTab] = useUrlTab({ param: "demo-tab", values: VALUES, defaultValue: "usage" }); return ( setTab(next as (typeof VALUES)[number])}> Usage API Select API, then look at the address bar: ?demo-tab=api. Reload, or press Back. The tab is in the URL, so it can be linked to. ); }