N
neokit

Tabs

Switch between views without a page load. DaisyUI offers three visual variants — plain, bordered, lifted, and box — all purely CSS-driven. Use the radio-input method for built-in panel switching with no JavaScript.

Plain (default)

No variant — renders a simple underline-style tab bar.

tabs

Bordered

variant="bordered" — adds a bottom border to the active tab and an underline across the tab bar.

tabs bordered

Lifted

variant="lifted" — the active tab is raised, connecting to the content panel below it.

tabs lifted

Box

variant="box" — pill/box style with the active tab filled as a solid background.

tabs box

Sizes

Five sizes: xs, sm, md, lg, xl.

tabs sizes

size="xs"

size="sm"

size="md"

size="lg"

size="xl"

With content panels — bordered

Radio inputs power built-in panel switching with zero JavaScript. Each <input type="radio" class="tab"> is paired with a <div class="tab-content">.

tabs with panels (bordered)

Tab 1 content

This panel is shown when Tab 1 is selected. It can contain any HTML — forms, tables, lists, images, etc.

Tab 2 content

Selecting this tab hides Tab 1 and Tab 3's panels entirely — no JavaScript needed.

Tab 3 content

The radio input approach keeps everything in CSS and HTML, with no event listeners required.

With content panels — lifted

The lifted variant visually connects the active tab to its panel.

tabs with panels (lifted)

Overview

High-level summary of the project. Status: on track. Completion: 68%.

Files

  • README.md
  • package.json
  • src/index.ts
  • src/components/

Settings

With content panels — box

tabs with panels (box)

Showing daily stats for today.

Visitors
1,240
↗︎ 12% vs yesterday

Showing weekly stats for this week.

Visitors
8,670
↘︎ 3% vs last week

Showing monthly stats for this month.

Visitors
34,200
↗︎ 8% vs last month

Disabled tab

Add tab-disabled to make a tab non-interactive.

tabs disabled