VerticalTabs
The sections of a settings page as tabs down the side: General, Members, Backups. On phones they go on top, two by two.
import { VerticalTabs, VerticalTabsSkeleton } from '@sypnia/ui/react'
Project settings
General
Members
Backups
Delete project
- Region
- Frankfurt
- Created
- March 2026
Code
import { Field, Input, KeyValue, Switch, VerticalTabs } from '@sypnia/ui/react';
// The sections of a settings page down the side. On a phone they go on top, two by two.
export default function Settings() {
return (
<VerticalTabs label="Project settings" items={[
{ id: 'general', label: 'General', icon: 'settings', content: <div className="sy-stack"><Field label="Project name"><Input defaultValue="shop" /></Field><KeyValue items={[['Region', 'Frankfurt'], ['Created', 'March 2026']]} /></div> },
{ id: 'members', label: 'Members', icon: 'users', content: <p>Ana Ruiz, Luis Prado and 3 more can open this project.</p> },
{ id: 'backups', label: 'Backups', icon: 'backup', content: <Switch label="Daily backup" description="Runs at 03:00 in the project's time zone." defaultChecked /> },
{ id: 'danger', label: 'Delete project', icon: 'trash', content: <p>Deleting removes the data, the files and the logs.</p> },
]} />
);
} Skeleton
The real piece and its skeleton: the same box, so nothing moves when the data arrives.
Code
import { VerticalTabsSkeleton } from '@sypnia/ui/react';
// While the sections load.
export default function Skeleton() { return <VerticalTabsSkeleton items={4} />; } When to use it
Use it when
- Settings with four or more sections.
- Name each section with a noun the person recognizes.
Do not use it when
- Two or three sections: use Tabs.
- Steps in order: use a Wizard.
For everyone
- Arrow keys up and down move between tabs; the panel follows.
- The current tab carries the light and is
aria-selected.
Props
| VerticalTabs | Type | Default |
|---|---|---|
itemsrequired | VerticalTab[] | |
labelrequired | string | |
onChange | ((id: string) => void) | |
selected | string |
| VerticalTabsSkeleton | Type | Default |
|---|---|---|
items | number | 4 |