Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sure-developer.com/llms.txt

Use this file to discover all available pages before exploring further.

Tabs

Tabs renders a tab list and text content panels.
ui.tabs({
  {
    label = 'Overview',
    value = 'overview',
    content = 'Tabs, table, carousel, accordion, and controls all come from Lua nodes.'
  },
  {
    label = 'Styling',
    value = 'styling',
    content = 'Runtime utility styles and part classes can customize the surface.'
  }
}, {
  defaultValue = 'overview',
  activeTriggerClassName = 'bg-[#111111] text-white'
})

API

ui.tabs(items, props?)

Item shape

FieldTypeDescription
value or idstringStable tab id. Defaults to tab-N.
label or titlestringTrigger label. Defaults to value.
content or descriptionstringContent panel text.

Props

PropDescription
defaultValueInitial active tab. Defaults to the first tab value.
listClassNameTab list wrapper class.
triggerClassNameShared trigger class.
activeTriggerClassNameActive trigger class.
inactiveTriggerClassNameInactive trigger class.
labelClassNameShared label class.
activeLabelClassNameActive label class.
inactiveLabelClassNameInactive label class.
contentClassNameContent panel class.