import 'package:gluestack_ui/gluestack_ui.dart';
GSHeading(
text: 'I am a Heading',
style: GSStyle(textStyle: const TextStyle(letterSpacing: 2)),
)
import "package:gluestack_ui/gluestack_ui.dart"
Name | Value | Default |
---|---|---|
isTruncated | true | false | false |
bold | true | false | false |
underline | true | false | false |
strikeThrough | true | false | false |
sub | true | false | false |
italic | true | false | false |
highlight | true | false | false |
size | 5xl | 4xl | 3xl | 2xl | xl | lg | md | sm | xs | md |
Prop | Type | Default | Description |
---|---|---|---|
bold | boolean | false | Used to make the text bold. |
isTruncated | boolean | false | If true, it will render an ellipsis when the text exceeds the width of the viewport or maxWidth set. |
italic | boolean | false | Used to make the text italic. |
underline | boolean | false | Used underline the text. |
strikeThrough | boolean | false | A horizontal line through the center of the text. |
highlight | boolean | false | Used to highlight the text with a yellow background. |