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.

vue
<NbContentSwitcher v-model="period" label="Period" :items="periods" />
<NbContentSwitcher v-model="view" label="View" icon-only :items="views" />

When to use it ​

  • To show the same content another way. The content stays, its presentation changes.
  • Not to move between different content: that is NbTabs.
  • Not for a setting that is saved: that is a radio group or a select.
  • Two to five options. More than that does not read as one choice.

Icon only ​

icon-only drops the text. Each label becomes its button's accessible name and its tooltip, through NbButton's label, so give every item an icon. An item without one keeps its text.