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.