SunUI
Founding$79 lifetime updates till Jan 11Claim a seat
ProProduct UIPress

Workspace Tabs

Browser-style tabs for an app frame.

When to use it

  • Admin and tool apps where people keep several records open at once, such as orders, products and campaigns in a store back office
  • Editors and dashboards that want desktop-app tabs with close, new tab and reordering instead of a fixed tab set
  • Any App Shell layout whose sidebar collapses: WorkspaceShell keeps the toggle and the brand in one place and slides the tabs and the panel instead

Watch out

  • Tabs are controlled: keep tabs and activeId in your state (or your router) and update them in onActiveChange, onClose, onAdd and onReorder
  • Closing the selected tab calls onActiveChange with its neighbour before onClose, so remove the tab in onClose only
  • WorkspaceShell needs a height, like App Shell with breakpoint="container" (for example h-dvh); the selected tab's content scrolls inside the panel
  • For a fixed set of views that never open or close, use the free sliding-tabs folder variant instead
  • The narrow tab list switches on the tab row's own width (container query), so it needs Tailwind v4 or the container-queries plugin

Let your agent add it

One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.

This is a Pro block

One license unlocks every Pro block, now and in the future.

One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.

See pricing

Install with your license

  1. 1. Add the SunUI Pro registry to components.json.
    components.json
    {
      "registries": {
        "@sunui-pro": {
          "url": "https://sunui.synvize.com/r/pro/{name}.json",
          "headers": {
            "Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
          }
        }
      }
    }
  2. 2. Put your license key in .env.local.
    $ SUNUI_LICENSE_KEY=your-license-key
  3. 3. Install the block.
    $ npx shadcn@latest add @sunui-pro/workspace-tabs
Workspace Tabs, React Component | SunUI