mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(docs): correct Tab usage example (#4821)
This commit is contained in:
parent
d64fcc8389
commit
628bcdefeb
@ -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"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user