Skip to content

Content Switcher

Last updated 11 Nov 2026

NbContentSwitcher switches between alternate views of the same content: a list or a grid, this week or this month. One outlined row of equal options, the selected one filled, and a radio group to assistive technology.

Props ​

PropTypeDefaultDescription
modelValuestringThe selected item's id (v-model)
itemsIContentSwitcherItem[]requiredThe options, in order
labelstringrequiredWhat the choice is about: the group's name
iconOnlybooleanfalseIcons only, labels as names and tooltips
size'sm' | 'md' | 'lg''md'32, 40 or 48px

IContentSwitcherItem ​

FieldTypeDescription
idstringStable key, and the v-model value
labelstringThe text, or the name and tooltip icon-only
iconTIconSourceNeeded for iconOnly
disabledbooleanTakes the option out of the choice, in place

Events ​

EventPayloadFired when
update:modelValueid: stringAnother option was selected