Skip to content

Tabs

Primary and secondary tab rows with a sliding indicator, scrollable when they overflow.

import { Tabs, Tab } from '@windmorph/react';

Playground

Code

// Use your own icon components.import { EditIcon, SendIcon, StarIcon } from './icons';import { Tabs, Tab } from '@windmorph/react'; <Tabs  aria-label="Inbox">  <Tab key="all" title="All" icon={<StarIcon />}>    <p>Everything in one place.</p>  </Tab>  <Tab key="sent" title="Sent" icon={<SendIcon />}>    <p>Messages you sent.</p>  </Tab>  <Tab key="drafts" title="Drafts" icon={<EditIcon />}>    <p>Unfinished messages.</p>  </Tab></Tabs>

Examples

Primary tabs with panels

Secondary tabs

Scrollable

Badges, centred and swipeable

Density