Navigating Vuforia Studio > Widgets > 2D > Tabs
  
Tabs
What Does This Widget Do?
The Tabs widget is a special type of container. Each tab within the widget has its own content. Only one tab can be visible at a time, although all tabs load their content for quick switching between tabs.
When Should I Use This Widget?
Use Tabs when you want to enable high-level content organization, such as switching between views, data sets, or functional aspects of an Experience. For example, if you want to display data for three separate models of a truck, the Tabs would allow an Experience viewer to easily switch back-and-forth between the information for all three trucks.
Are There Any Special Properties, Services, Events, or Actions?
To view a list of common widget properties, services, and events, see Common Widget Properties, Services, and Events.
The following tables list properties, services, and events that are specific to this widget.
Property
Description
Tab Orientation
Select Vertical or Horizontal.
* 
When toggling between the two options, the orientation does not change in Vuforia Studio. To view changes, you must preview the Experience.
Tab Padding
Sets the padding for the container that houses the tabs and the tab contents. Enter a number followed by one of the supported formats (for example, 10px):
px
%
in
mm
cm
ex
em
pt
pc
If you want to set padding for the different tab contents, you can select them individually in the project tree and edit the individual padding properties.
Tab Strip Class
Specifies a class specifically for the strip or bar of tabs.
Title
Title of the tab.
Event
Description
Tab Click
Drag the Tab Click event a model in the project tree. Click the JS icon next to the Tab Click event to enter an expression.
The following actions are available with this widget.
Add Tab
The Widget in Action
Here’s an example of what your widget might look like!
Minimum Steps Required for Use
What It Looks Like
1. Drag and drop a Tabs widget onto the canvas.
2. Click Add Tab to add as many tabs as you like. For this example, we added two additional tabs.
3. Select a tab, and enter the tab name you want to display in the Title field.
4. Drag and drop the widgets you want displayed for that tab onto where it says Tab Content.
Style the Widget with CSS
You can use CSS to style the widget! The following is an example of a CSS class you could create and apply:
* 
Keep in mind that it’s best to give your classes unique names so they do not conflict with other classes or OOTB properties.
CSS Example
What It Looks Like
.ptc-tabs .tab-strip-item {
font-size: 25px;
}
For more information on implementing CSS classes, see Application Styles.