# TabContent The **** component is used only in the **** component. It corresponds to the content view of a switched tab page. ## Required Permissions None ## Child Component This component supports only one child component. ## APIs TabContent\(\) ## Attributes

Name

Type

Default Value

Description

tabBar

string | {

icon?: string,

text?: string

}

-

Content displayed on the tab bar.

NOTE:

If an icon uses an SVG image, the width and height attributes of the SVG image must be deleted. Otherwise, the icon size will be determined by the width and height attributes of the SVG image.

>![](../../public_sys-resources/icon-note.gif) **NOTE:** >- The **** component does not support setting of the common width attribute. By default, its width is the same as that of the parent **** component. >- The **** component does not support setting of the common height attribute. Its height is determined by the height of the parent **** component and the **** component. ## Example See [Tabs](ts-container-tabs.md#section1131255321814).