text
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
color | color | "error" | "helper" | "inverse" | "on-color" | "primary" | "secondary" | "tertiary" | 'primary' | |
configAria | config-aria | any | {} | |
expressive | expressive | boolean | false | |
headingLevel | heading-level | 1 | 2 | 3 | 4 | 5 | 6 | undefined | |
headingSize | heading-size | 1 | 2 | 3 | 4 | 5 | 6 | 7 | undefined | |
inline | inline | boolean | false | |
type | type | "body" | "body-compact" | "body-emphasis" | "body-large" | "code" | "fluid-heading" | "heading" | "helper-text" | "label" | "legal" | 'body' |
The air-text
component is used to render different types of text, such as headings, paragraphs, and explanatory text. It supports a variety of style and color options.
Property description
type
: specifies the type of text. The following options are supported:'code'
: displays code text'helper-text'
: auxiliary text'label'
: label text'legal'
: legal text'heading'
: heading text
'body'
: normal body text'body-compact'
: compact body text'body-large'
: large body text'body-emphasis'
: emphasised body text'fluid-heading'
: fluid heading textexpressive
: whether to enable the expressive text style (default:false
).headingSize
: the size of the heading, a number between 1 and 7, which affects the display size of the text of theheading
type.headingLevel
: the level of the heading, a number between 1 and 6. Determines the use of the<h1>
to<h6>
tags.inline
: whether to render the text as an inline element (default:false
).color
: the text color, with the following options:'primary'
: primary color'secondary'
: secondary color'tertiary'
: tertiary color'helper'
: helper color'error'
: error color
'on-color'
: text color is custom color'inverse'
: inverse colorconfigAria
: configures ARIA attributes, allowing you to attach ARIA attributes to text elements