Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tabs.root.tsx #1460

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 34 additions & 4 deletions apps/web/examples/tabs/tabs.root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,52 @@ export function Component() {
export function Component() {
return (
<Tabs aria-label="Default tabs" variant="default">
<Tabs.Item active title="Profile" icon={HiUserCircle}>
<Tabs.Item
active
title={
<span className="flex items-center">
<HiUserCircle className="mr-2" />
Profile
</span>
}
className="border-b-2 border-[#FD9339] pb-2" // Active holat uchun maxsus uslub
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove random comment

>
This is <span className="font-medium text-gray-800 dark:text-white">Profile tab's associated content</span>.
Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to
control the content visibility and styling.
</Tabs.Item>
<Tabs.Item title="Dashboard" icon={MdDashboard}>
<Tabs.Item
title={
<span className="flex items-center">
<MdDashboard className="mr-2" />
Dashboard
</span>
}
>
This is <span className="font-medium text-gray-800 dark:text-white">Dashboard tab's associated content</span>.
Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to
control the content visibility and styling.
</Tabs.Item>
<Tabs.Item title="Settings" icon={HiAdjustments}>
<Tabs.Item
title={
<span className="flex items-center">
<HiAdjustments className="mr-2" />
Settings
</span>
}
>
This is <span className="font-medium text-gray-800 dark:text-white">Settings tab's associated content</span>.
Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to
control the content visibility and styling.
</Tabs.Item>
<Tabs.Item title="Contacts" icon={HiClipboardList}>
<Tabs.Item
title={
<span className="flex items-center">
<HiClipboardList className="mr-2" />
Contacts
</span>
}
>
This is <span className="font-medium text-gray-800 dark:text-white">Contacts tab's associated content</span>.
Clicking another tab will toggle the visibility of this one for the next. The tab JavaScript swaps classes to
control the content visibility and styling.
Expand Down
Loading