# span The **\** component is a child component of [\](js-service-widget-basic-text.md) and is used as a text modifier. > **NOTE** > > The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. ## Child Components The child component **[\](js-service-widget-basic-span.md)** is supported. ## attributes The [universal attributes](js-service-widget-common-attributes.md) are supported. ## Styles | Name| Type| Default Value| Mandatory| Description| | -------- | -------- | -------- | -------- | -------- | | color | <color> | - | No| Font color of the modified text.| | font-size | <length> | 16px | No| Font size of the modified text.| | font-style | string | normal | No| Font style of the modified text. For details, see **font-style** of the [**\**](js-service-widget-basic-text.md#styles) component.| | font-weight | number \| string | normal | No| Font weight of the modified text. For details, see **font-weight** of the [**\**](js-service-widget-basic-text.md##styles) component.| | text-decoration | string | none | No| Text decoration of the modified text. For details, see **text-decoration** of the [**\**](js-service-widget-basic-text.md#styles) component.| | font-family | string | sans-serif | No| Font family, in which fonts are separated by commas (,). Each font is set using a font name or font family name. The first font in the family or the specified [custom font](js-service-widget-common-customizing-font.md) is used for the text.| ## Events Not supported ## Example For details, see [Example of the \ component](js-service-widget-basic-text.md#example).