fix(docs): correct Tab usage example (#4821)

This commit is contained in:
Ryo Matsukawa 2025-02-11 22:02:06 +09:00 committed by GitHub
parent d64fcc8389
commit 628bcdefeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,10 +169,10 @@ function AppTabs() {
return (
<div className="flex flex-col gap-2">
<Tabs selectedKey={pathname} aria-label="Tabs">
<Tab id="/" href="/" title="Home" />
<Tab id="/photos" href="/photos" title="Photos" />
<Tab id="/music" href="/music" title="Music" />
<Tab id="/videos" href="/videos" title="Videos" />
<Tab key="/" href="/" title="Home" />
<Tab key="/photos" href="/photos" title="Photos" />
<Tab key="/music" href="/music" title="Music" />
<Tab key="/videos" href="/videos" title="Videos" />
</Tabs>
<Routes>
<Route path="/" element={<HomePage />} />
@ -356,7 +356,7 @@ You can customize the `Tabs` component by passing custom Tailwind CSS classes to
},
{
attribute: "isVertical",
type: "boolean",
type: "boolean",
description: "Whether the tabs are vertical.",
default: "false"
},