James Shopland

Tabs [react-aria-components]

Navigation 6

About

Tabs organize content into multiple sections and allow users to navigate between them.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Tabs [react-aria-components] to your project and fits it to your theme.

Code

How Tabs [react-aria-components] is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Tab, TabList, TabPanel, Tabs } from "@/components/ui/tabs"

export function TabDemo() {
  return (
    <Tabs>
      <TabList aria-label="History of Ancient Rome">
        <Tab id="FoR">Founding of Rome</Tab>
        <Tab id="MaR">Monarchy and Republic</Tab>
        <Tab id="Emp">Empire</Tab>
      </TabList>
      <TabPanel id="FoR">
        Arma virumque cano, Troiae qui primus ab oris.
      </TabPanel>
      <TabPanel id="MaR">Senatus Populusque Romanus.</TabPanel>
      <TabPanel id="Emp">Alea jacta est.</TabPanel>
    </Tabs>
  )
}

Dependencies

More by James Shopland

View all
  • Tag Group [react-aria-components]

    Tag Group [react-aria-components]

    99
  • Date Range Picker [react-aria-components]

    Date Range Picker [react-aria-components]

    90
  • Grid List [react-aria-components]

    Grid List [react-aria-components]

    75
  • Switch [react-aria-components]

    Switch [react-aria-components]

    71
  • Select [react-aria-components]

    Select [react-aria-components]

    48
  • Range Calendar [react-aria-components]

    Range Calendar [react-aria-components]

    40
  • Menu

    Menu

    37
  • Popover

    Popover

    36

More in Navigation

View all
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    76
  • Footer with Big Wordmark

    Footer with Big Wordmark

    40
  • Sidebar

    Sidebar

    392
  • Oversized 404 Numeral

    Oversized 404 Numeral

    78
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    67
  • NavBar

    NavBar

    2
  • Pagination

    Pagination

    109
  • Tabs like bookmark

    Tabs like bookmark

    82