Skip to content

Vertical tabs

List a tabs field's tabs in a column beside its fields. Works with every style and palette.

A tabs field with General and Advanced listed in a column beside a Meta Title fieldA tabs field with General and Advanced listed in a column beside a Meta Title field
import { VERTICAL_TABS } from '@payloadpack/theme'
const field = {
type: 'tabs',
admin: { className: VERTICAL_TABS },
tabs: [
{ label: 'General', fields: [{ name: 'metaTitle', type: 'text' }] },
{ label: 'Advanced', fields: [{ name: 'canonicalUrl', type: 'text' }] }
]
}

From 768px wide the tabs stack in a 270px column on the left. Narrower screens keep Payload’s horizontal tabs. In both layouts the Left and Right arrow keys move between tabs.