Go Main page
Go Main page

Web components

cover

utilities types

TextComponentType

v.1.0.0 | Saturn
Healthy
Github

The TextComponentType enum helps to specify the tag linked with a particular text component. It plays a crucial role in accessibility, aiding screen readers to grasp the text's context effectively.

It can have the following values:

  • BOLD: for "b" tag.
  • ANCHOR: for "a" tag.
  • STRONG: for "strong" tag.
  • ITALIC: for "i" tag.
  • EMPHASIZED: for "em" tag.
  • MARK: for "mark" tag.
  • SMALL: for "small" tag.
  • DELETED: for "del" tag.
  • INSERTED: for "ins" tag.
  • SUBSCRIPT: for "sub" tag.
  • SUPERSCRIPT: for "sup" tag.
  • PARAGRAPH: for "p" tag.
  • SPAN: for "span" tag.
  • LABEL: for "label" tag.
  • LEGEND: for "legend" tag.
  • H1: for "h1" tag.
  • H2: for "h2" tag.
  • H3: for "h3" tag.
  • H4: for "h4" tag.
  • H5: for "h5" tag.
  • H6: for "h6" tag.
  • DL: for "dl" tag.
  • DT: for "dt" tag.
  • DD: for "dd" tag.