The Text component is used to display textual content. It can be bound to a custom text selection menu, allowing users to select features as needed. Additionally, you can extend this custom menu to add more options, further enhancing user experience. The Span component is used to display inline text.
For details, see the API documentation for Text and Span.
For details, see FAQs About Text Display (Text/Span).
You can create text in either of the following ways:
Entering strings
Text('I am a piece of text') 
Referencing Resource objects
Resource reference types can be created using $r. The resource file is located at /resources/base/element/string.json with the following content:
{
"string": [
{
"name": "module_desc",
"value": "Module description"
}
]
} // Replace $r('app.string.module_desc') with the actual resource file. In this example, the value in the resource file is "Module description."
Text($r('app.string.module_desc'))
.baselineOffset(0)
.fontSize(30)
.border({ width: 1 })
.padding(10)
.width(300) 
The Span component can only act as a child of the Text and RichEditor components. You can add one or more Span child components to a Text component to display a piece of information, such as the product description and statement of commitment.
Creating a Span component
A Span component is only visible when embedded within a Text component. Using a Span independently displays no content. If both Text and Span content are configured, the Span content overrides the Text content.
// Replace $r('app.string.TextSpan_textContent_text') with the actual resource file. In this example, the value in the resource file is "I am Text."
Text($r('app.string.TextSpan_textContent_text')) {
// Replace $r('app.string.TextSpan_textContent_span') with the actual resource file. In this example, the value in the resource file is "I am Span."
Span($r('app.string.TextSpan_textContent_span'))
}
.padding(10)
.borderWidth(1) 
Setting the text decoration
Use the decoration attribute to set the style and color of the text decorative line.
Text() {
// Replace $r('app.string.TextSpan_textContent_span_one') with the actual resource file. In this example, the value in the resource file is "I am Span1."
Span($r('app.string.TextSpan_textContent_span_one'))
.fontSize(16)
.fontColor(Color.Grey)
.decoration({ type: TextDecorationType.LineThrough, color: Color.Red })
// Replace $r('app.string.TextSpan_textContent_span_two') with the actual resource file. In this example, the value in the resource file is "I am Span2."
Span($r('app.string.TextSpan_textContent_span_two'))
.fontColor(Color.Blue)
.fontSize(16)
.fontStyle(FontStyle.Italic)
.decoration({ type: TextDecorationType.Underline, color: Color.Black })
// Replace $r('app.string.TextSpan_textContent_span_three') with the actual resource file. In this example, the value in the resource file is "I am Span3."
Span($r('app.string.TextSpan_textContent_span_three'))
.fontSize(16)
.fontColor(Color.Grey)
.decoration({ type: TextDecorationType.Overline, color: Color.Green })
}
.borderWidth(1)
.padding(10) 
Use the textCase attribute to set the text case.
Text() {
Span('I am Upper-span').fontSize(12)
.textCase(TextCase.UpperCase)
}
.borderWidth(1)
.padding(10) 
Adding events
Because Span components do not have independent size information, they only support the onClick and onHover events.
// xxx.ets
import { hilog } from '@kit.PerformanceAnalysisKit';
@Entry
@Component
struct TextSpanOnHover {
@State textStr1: string = '';
@State textStr2: string = '';
build() {
NavDestination() {
Row() {
Column() {
Text() {
Span('I am Upper-span')
.textCase(TextCase.UpperCase)
.fontSize(30)
.onClick(() => {
hilog.info(0x0000, 'Sample_TextComponent', 'Span onClick is triggering');
this.textStr1 = 'Span onClick is triggering';
})
.onHover(() => {
hilog.info(0x0000, 'Sample_TextComponent', 'Span onHover is triggering');
this.textStr2 = 'Span onHover is triggering';
})
}
Text('onClick: ' + this.textStr1)
.fontSize(20)
Text('onHover: ' + this.textStr2)
.fontSize(20)
}.width('100%')
}
.height('100%')
}
// ···
}
} 
The Text component supports custom text style configuration. The following table lists the key attributes for text styling.
| Name | Description |
|---|---|
| baselineOffset | Offset of the text baseline. |
| contentTransition | Digital flip animation effect. |
| copyOption | Whether text can be copied and pasted. |
| decoration | Text decoration, such as the line style, color, and thickness. |
| enableAutoSpacing | Whether to enable automatic spacing between Chinese and Western characters. |
| enableDataDetector | Whether to enable recognition for special entities within the text. |
| font | Font-related attributes. |
| fontColor | Text color. |
| fontFamily | Font family. |
| fontFeature | Typographic features, such as numeric width adjustment. |
| fontSize | Font size. |
| fontStyle | Font style. |
| fontWeight | Font weight. |
| halfLeading | Whether half leading is enabled. |
| heightAdaptivePolicy | Font size adjustment strategy for adaptive text layout. |
| letterSpacing | Letter spacing. |
| lineHeight | Line height. |
| lineSpacing | Spacing between lines. |
| marqueeOptions | Marquee behavior, including the enabled status, step, loop count, and direction. |
| maxFontSize | Maximum font size for adaptive scaling. |
| maxLines | Maximum number of visible lines. |
| minFontSize | Minimum font size for adaptive scaling. |
| optimizeTrailingSpace | Whether to optimize trailing spaces at line endings. |
| privacySensitive | Whether to enable privacy mode on widgets. |
| shaderStyle | Gradient color effect. |
| textCase | Text case conversion. |
| textAlign | Horizontal alignment mode of text paragraphs. |
| textIndent | Indent of the first line of text. |
| textOverflow | Handling of overflow text. |
| textSelectable | Whether text can be selected. |
| textVerticalAlign | Vertical alignment mode of text paragraphs. |
| wordBreak | Word breaking rule. |
The following examples demonstrate usage of common APIs.
Use the textAlign attribute to set the alignment mode of text.
// Replace $r('app.string.TextAlign_Start') with the actual resource file. In this example, the value in the resource file is "Left-aligned."
Text($r('app.string.TextAlign_Start'))
.width(300)
.textAlign(TextAlign.Start)
.border({ width: 1 })
.padding(10)
// Replace $r('app.string.TextAlign_Center') with the actual resource file. In this example, the value in the resource file is "Center-aligned."
Text($r('app.string.TextAlign_Center'))
.width(300)
.textAlign(TextAlign.Center)
.border({ width: 1 })
.padding(10)
// Replace $r('app.string.TextAlign_End') with the actual resource file. In this example, the value in the resource file is "Right-aligned."
Text($r('app.string.TextAlign_End'))
.width(300)
.textAlign(TextAlign.End)
.border({ width: 1 })
.padding(10) 
Use the textOverflow attribute to set the display mode for when the text is too long. This attribute must be used together with maxLines. By default, the text is automatically wrapped. Since API version 18, when text overflow is set to marquee mode, you can configure marquee parameters such as enabled status, scroll step, loop count, and direction.
Text('This is the setting of textOverflow to Clip text content This is the setting of textOverflow ' +
'to None text content. This is the setting of textOverflow to Clip text content This is the setting ' +
'of textOverflow to None text content.')
.width(250)
.textOverflow({ overflow: TextOverflow.None })
.maxLines(1)
.fontSize(12)
.border({ width: 1 })
.padding(10)
// The value in the 'app.string.CustomTextStyle_textContent_epsis' resource file is
// 'I am extra long text, with an ellipse displayed for any excess.'
Text($r('app.string.CustomTextStyle_textContent_epsis'))
.width(250)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.maxLines(1)
.fontSize(12)
.border({ width: 1 })
.padding(10)
// The value in the 'app.string.CustomTextStyle_textContent_marq' resource file is
// 'When the text overflows its size,
// the text is displayed in scrolling mode.'
Text($r('app.string.CustomTextStyle_textContent_marq'))
.width(250)
.textOverflow({ overflow: TextOverflow.MARQUEE })
.maxLines(1)
.fontSize(12)
.border({ width: 1 })
.padding(10)
// The value in the 'app.string.CustomTextStyle_textContent_marq_def' resource file is
// 'When text exceeds its container dimensions, it scrolls to display fully.
// Custom marquee parameters can be configured.'
Text($r('app.string.CustomTextStyle_textContent_marq_def'))
.width(250)
.textOverflow({ overflow: TextOverflow.MARQUEE })
.maxLines(1)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.marqueeOptions({
start: true,
fromStart: true,
step: 6,
loop: -1,
delay: 0,
fadeout: false,
marqueeStartPolicy: MarqueeStartPolicy.DEFAULT
}) 
Use the lineHeight attribute to set the text line height.
Text('This is the text with the line height set. This is the text with the line height set.')
.width(300).fontSize(12).border({ width: 1 }).padding(10)
Text('This is the text with the line height set. This is the text with the line height set.')
.width(300)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.lineHeight(20) 
Use the decoration attribute to set the style, color, and thickness of the text decoration line.
Text('This is the text')
.decoration({
type: TextDecorationType.LineThrough,
color: Color.Red
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Overline,
color: Color.Red
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Underline,
color: Color.Red
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Underline,
color: Color.Blue,
style: TextDecorationStyle.DASHED
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Underline,
color: Color.Blue,
style: TextDecorationStyle.DOTTED
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Underline,
color: Color.Blue,
style: TextDecorationStyle.DOUBLE
})
.borderWidth(1).padding(15).margin(5)
Text('This is the text')
.decoration({
type: TextDecorationType.Underline,
color: Color.Blue,
style: TextDecorationStyle.WAVY,
thicknessScale: 4
})
.borderWidth(1).padding(15).margin(5) 
Use the baselineOffset attribute to set the baseline offset of the text.
Text('This is the text content with baselineOffset 0.')
.baselineOffset(0)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5)
Text('This is the text content with baselineOffset 30.')
.baselineOffset(30)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5)
Text('This is the text content with baselineOffset -20.')
.baselineOffset(-20)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5) 
Use the letterSpacing attribute to set the letter spacing.
Text('This is the text content with letterSpacing 0.')
.letterSpacing(0)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5)
Text('This is the text content with letterSpacing 3.')
.letterSpacing(3)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5)
Text('This is the text content with letterSpacing -1.')
.letterSpacing(-1)
.fontSize(12)
.border({ width: 1 })
.padding(10)
.width('100%')
.margin(5) 
Use the minFontSize and maxFontSize attributes to adaptively adjust the font size.
minFontSize and maxFontSize specify the minimum and maximum font size, respectively. For the settings to take effect, these attributes must be used together with maxLines or layout constraint settings.
/* Replace $r('app.string.CustomTextStyle_textContent_one_style') with the actual resource file.
* In this example, the value of this resource file is "My max font size is 30, min font size is 5, width is 250, maxLines is 1".
*/
Text($r('app.string.CustomTextStyle_textContent_one_style'))
.width(250)
.maxLines(1)
.maxFontSize(30)
.minFontSize(5)
.border({ width: 1 })
.padding(10)
.margin(5)
/* Replace $r('app.string.CustomTextStyle_textContent_two_style') with the actual resource file.
* In this example, the value of this resource file is "My max font size is 30, min font size is 5, width is 250, maxLines is 2".
*/
Text($r('app.string.CustomTextStyle_textContent_two_style'))
.width(250)
.maxLines(2)
.maxFontSize(30)
.minFontSize(5)
.border({ width: 1 })
.padding(10)
.margin(5)
/* Replace $r('app.string.CustomTextStyle_textContent_no_max') with the actual resource file.
* In this example, the value of this resource file is "My max font size is 30, min font size is 15, width is 250, height is 50".
*/
Text($r('app.string.CustomTextStyle_textContent_no_max'))
.width(250)
.height(50)
.maxFontSize(30)
.minFontSize(15)
.border({ width: 1 })
.padding(10)
.margin(5)
/* Replace $r('app.string.CustomTextStyle_textContent_high') with the actual resource file.
* In this example, the value of this resource file is "My max font size is 30, min font size is 15, width is 250, height is 100".
*/
Text($r('app.string.CustomTextStyle_textContent_high'))
.width(250)
.height(100)
.maxFontSize(30)
.minFontSize(15)
.border({ width: 1 })
.padding(10)
.margin(5) 
Use the textCase attribute to set the text case.
Text('This is the text content with textCase set to Normal.')
.textCase(TextCase.Normal)
.border({ width: 1 })
.padding(10)
.margin(5)
// The text is displayed in lowercase.
Text('This is the text content with textCase set to LowerCase.')
.textCase(TextCase.LowerCase)
.border({ width: 1 })
.padding(10)
.margin(5)
// The text is displayed in uppercase.
Text('This is the text content with textCase set to UpperCase.')
.textCase(TextCase.UpperCase)
.border({ width: 1 })
.padding(10)
.margin(5) 
Use the copyOption attribute to set whether copy and paste is allowed.
// Replace $r('app.string.CustomTextStyle_textContent_incopy') with the actual resource file. In this example, the value in the resource file is "This text can be copied."
Text($r('app.string.CustomTextStyle_textContent_incopy'))
.fontSize(30)
.copyOption(CopyOptions.InApp) 
Via the fontFamily attribute, set the text font family. The app currently supports the 'HarmonyOS Sans' font and custom font registration.
Text('This is the text content with fontFamily')
.fontSize(30)
.fontFamily('HarmonyOS Sans') 
Since API version 20, you can use the contentTransition attribute to configure digital flip animation effects.
@Entry
@Component
struct ContentTransitionDemo {
private static readonly INITIAL_SCORE: number = 98;
@State number: number = ContentTransitionDemo.INITIAL_SCORE;
@State numberTransition: NumericTextTransition =
new NumericTextTransition({ flipDirection: FlipDirection.DOWN, enableBlur: false });
build() {
NavDestination() {
Column() {
Text(this.number + '')
.borderWidth(1)
.fontSize(40)
.contentTransition(this.numberTransition)
Button('change number')
.onClick(() => {
this.number++
})
.margin(10)
}
.width('100%')
.height('100%')
}
// ···
}
} 
Since API version 20, you can use optimizeTrailingSpace to control whether trailing spaces at the end of each line are optimized during text layout. This addresses alignment issues caused by trailing spaces.
Column() {
// Trailing spaces at the end of each line are optimized.
Text('Trimmed space enabled ')
.fontSize(30)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.optimizeTrailingSpace(true)
.textAlign(TextAlign.Center)
// Trailing spaces at the end of each line are not optimized.
Text('Trimmed space disabled ')
.fontSize(30)
.fontWeight(FontWeight.Bold)
.margin({ top: 20 })
.optimizeTrailingSpace(false)
.textAlign(TextAlign.Center)
} 
Since API version 20, you can use lineSpacing to configure text line spacing. If LineSpacingOptions is not specified, line spacing is applied above the first line and below the last line by default. When onlyBetweenLines is set to true, line spacing is applied only between lines, with no extra spacing above the first line.
import { LengthMetrics } from '@kit.ArkUI';
@Extend(Text)
function style() {
.width(250)
.height(100)
.maxFontSize(30)
.minFontSize(15)
.border({ width: 1 })
}
@Entry
@Component
struct LineSpacing {
build() {
NavDestination() {
Column() {
Text('The line spacing of this context is set to 20_px, and the spacing is effective only between the lines.')
.lineSpacing(LengthMetrics.px(20), { onlyBetweenLines: true })
.style()
}
}
// ···
}
} 
Since API version 20, you can use enableAutoSpacing to enable or disable automatic spacing between Chinese and English characters.
@Entry
@Component
struct EnableAutoSpacing {
@State enableSpacing: boolean = false;
build() {
NavDestination() {
Column() {
Row({ space: 20 }) {
// Replace $r('app.string.Enable_automatic_spacing') with the actual resource file. In this example, the value in the resource file is "Enable automatic spacing."
Button($r('app.string.Enable_automatic_spacing'))
.onClick(() => this.enableSpacing = true)
.backgroundColor(this.enableSpacing ? '#4CAF50' : '#E0E0E0')
.fontColor(this.enableSpacing ? Color.White : Color.Black)
// Replace $r('app.string.off_automatic_spacing') with the actual resource file. In this example, the value in the resource file is "Disable automatic spacing."
Button($r('app.string.off_automatic_spacing'))
.onClick(() => this.enableSpacing = false)
.backgroundColor(!this.enableSpacing ? '#F44336' : '#E0E0E0')
.fontColor(!this.enableSpacing ? Color.White : Color.Black)
}
.width('100%')
.justifyContent(FlexAlign.Center)
.margin({ top: 30, bottom: 20 })
// Replace $r('app.string.Automatic_spacing_has_been_enabled') with the actual resource file. In this example, the value in the resource file is "Current status: Automatic spacing enabled."
// Replace $r('app.string.Automatic_spacing_has_been_turned_off') with the actual resource file. In this example, the value in the resource file is "Current status: Automatic spacing disabled."
Text(this.enableSpacing ? $r('app.string.Automatic_spacing_has_been_enabled') : $r('app.string.Automatic_spacing_has_been_turned_off'))
.fontSize(16)
.fontColor(this.enableSpacing ? '#4CAF50' : '#F44336')
.margin({ bottom: 20 })
// Set whether to enable automatic spacing between Chinese and English characters.
/* Replace $r('app.string.Chinese_and_Western_Auto_Spacing_automatic_spacing') with the actual resource file.
* In this example, the value of this resource file is "Chinese-Western Auto Spacing".
*/
Text($r('app.string.Chinese_and_Western_Auto_Spacing_automatic_spacing'))
.fontSize(24)
.padding(15)
.backgroundColor('#F5F5F5')
.width('90%')
.enableAutoSpacing(this.enableSpacing)
}
.width('100%')
.height('100%')
.padding(20)
}
// ...
}
} 
Since API version 20, you can use shaderStyle to apply gradient color effects to text.
@Entry
@Component
struct ShaderStyleDemo {
@State message: string = 'Hello World';
@State linearGradientOptions: LinearGradientOptions =
{
direction: GradientDirection.LeftTop,
colors: [[Color.Red, 0.0], [Color.Blue, 0.3], [Color.Green, 0.5]],
repeating: true,
};
build() {
NavDestination() {
Column({ space: 5 }) {
// Replace $r('app.string.direction_LeftTop') with the actual resource file. In this example, the value in the resource file is "Linear gradient (top left direction)."
Text($r('app.string.direction_LeftTop')).fontSize(18).width('90%').fontColor(0xCCCCCC)
.margin({ top: 40, left: 40 })
Text(this.message)
.fontSize(50)
.width('80%')
.height(50)
.shaderStyle(this.linearGradientOptions)
}
.height('100%')
.width('100%')
}
// ...
}
} 
You can bind the Text component to the onClick, onTouch, or other universal events to respond to user operations.
// xxx.ets
import { hilog } from '@kit.PerformanceAnalysisKit';
@Entry
@Component
struct GeneralEvents {
@State textStr1: string = '';
@State textStr2: string = '';
build() {
NavDestination() {
Row() {
Column() {
Text('This is a text component.')
.fontSize(30)
.onClick(() => {
hilog.info(0x0000, 'Sample_TextComponent', 'Text onClick is triggering');
this.textStr1 = 'Text onClick is triggering';
})
.onTouch(() => {
hilog.info(0x0000, 'Sample_TextComponent', 'Text onTouch is triggering');
this.textStr2 = 'Text onTouch is triggering';
})
Text('onClick: ' + this.textStr1)
.fontSize(20)
Text('onTouch: ' + this.textStr2)
.fontSize(20)
}.width('100%')
}
.height('100%')
}
// ···
}
} 
Since API version 20, use the textVerticalAlign attribute to vertically align text paragraphs.
The following example demonstrates how to use the textVerticalAlign attribute to center text vertically:
// Replace $r('app.media.startIcon') with the actual resource file.
Text() {
Span('Hello')
.fontSize(50)
ImageSpan($r('app.media.startIcon'))
.width(30).height(30)
.verticalAlign(ImageSpanAlignment.FOLLOW_PARAGRAPH)
Span('World')
}
.textVerticalAlign(TextVerticalAlign.CENTER) 
This example demonstrates how to implement a hot search list using the maxLines, textOverflow, textAlign, and constraintSize attributes.
@Entry
@Component
struct TextHotSearch {
build() {
NavDestination() {
Column({ space: 12 }) {
// ...
Column() {
Row() {
Text('1').fontSize(14).fontColor(Color.Red).margin({ left: 10, right: 10 })
// Replace $r('app.string.TextHotSearch_textContent_one') with the actual resource file. In this example, the value in the resource file is "I am entry 1."
Text($r('app.string.TextHotSearch_textContent_one'))
.fontSize(12)
.fontColor(Color.Blue)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.fontWeight(300)
// Replace $r('app.string.TextHotSearch_textContent_two') with the actual resource file. In this example, the value in the resource file is "Top Hit."
Text($r('app.string.TextHotSearch_textContent_two'))
.margin({ left: 6 })
.textAlign(TextAlign.Center)
.fontSize(10)
.fontColor(Color.White)
.fontWeight(600)
.backgroundColor(0x770100)
.borderRadius(5)
.width(15)
.height(14)
}.width('100%').margin(5)
Row() {
Text('2').fontSize(14).fontColor(Color.Red).margin({ left: 10, right: 10 })
/* Replace $r('app.string.TextHotSearch_textContent_three') with the actual resource file.
* In this example, the value of this resource file is "I am hot search term 2 I am hot search term 2 I am hot search term 2 I am hot search term 2 I am hot search term 2".
*/
Text($r('app.string.TextHotSearch_textContent_three'))
.fontSize(12)
.fontColor(Color.Blue)
.fontWeight(300)
.constraintSize({ maxWidth: 200 })
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
// Replace $r('app.string.TextHotSearch_textContent_four') with the actual resource file. In this example, the value in the resource file is "Hot."
Text($r('app.string.TextHotSearch_textContent_four'))
.margin({ left: 6 })
.textAlign(TextAlign.Center)
.fontSize(10)
.fontColor(Color.White)
.fontWeight(600)
.backgroundColor(0xCC5500)
.borderRadius(5)
.width(15)
.height(14)
}.width('100%').margin(5)
Row() {
Text('3').fontSize(14).fontColor(Color.Orange).margin({ left: 10, right: 10 })
// Replace $r('app.string.TextHotSearch_textContent_five') with the actual resource file. In this example, the value in the resource file is "I am entry 3."
Text($r('app.string.TextHotSearch_textContent_five'))
.fontSize(12)
.fontColor(Color.Blue)
.fontWeight(300)
.maxLines(1)
.constraintSize({ maxWidth: 200 })
.textOverflow({ overflow: TextOverflow.Ellipsis })
// Replace $r('app.string.TextHotSearch_textContent_four') with the actual resource file. In this example, the value in the resource file is "Hot."
Text($r('app.string.TextHotSearch_textContent_four'))
.margin({ left: 6 })
.textAlign(TextAlign.Center)
.fontSize(10)
.fontColor(Color.White)
.fontWeight(600)
.backgroundColor(0xCC5500)
.borderRadius(5)
.width(15)
.height(14)
}.width('100%').margin(5)
Row() {
Text('4').fontSize(14).fontColor(Color.Grey).margin({ left: 10, right: 10 })
/* Replace $r('app.string.TextHotSearch_textContent_six') with the actual resource file.
* In this example, the value of this resource file is "I am hot search term 4 I am hot search term 4 I am hot search term 4 I am hot search term 4 I am hot search term 4".
*/
Text($r('app.string.TextHotSearch_textContent_six'))
.fontSize(12)
.fontColor(Color.Blue)
.fontWeight(300)
.constraintSize({ maxWidth: 200 })
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}.width('100%').margin(5)
}.width('100%')
// ...
}
.width('100%')
.height('100%')
.padding({ left: 12, right: 12 })
}
// ...
}
} 