Valores aceitos para o componente Text.

Atente-se que algumas propriedades são herdadas de outros conjuntos

Veja abaixo um exemplo utilizando algumas as propriedades:

<Text color="neutral-900">Super customizado</Text>

Hierarchy

Properties

backgroundColor?: "none" | "primary-100" | "primary-300" | "primary-500" | "primary-700" | "primary-900" | "secondary-100" | "secondary-300" | "secondary-500" | "secondary-700" | "secondary-900" | "tertiary-100" | "tertiary-300" | "tertiary-500" | "tertiary-700" | "tertiary-900" | "accent-100" | "accent-300" | "accent-500" | "accent-700" | "accent-900" | "neutral-900" | "neutral-700" | "neutral-500" | "neutral-300" | "neutral-100" | "positive-700" | "positive-300" | "warning-700" | "warning-300" | "negative-700" | "negative-300" | "support-01" | "support-02" | "support-03"

Cor de fundo do componente

block?: boolean

Usar a opção block deixa ele como um bloco ao invés de texto linear.

borderColor?: "none" | "primary-100" | "primary-300" | "primary-500" | "primary-700" | "primary-900" | "secondary-100" | "secondary-300" | "secondary-500" | "secondary-700" | "secondary-900" | "tertiary-100" | "tertiary-300" | "tertiary-500" | "tertiary-700" | "tertiary-900" | "accent-100" | "accent-300" | "accent-500" | "accent-700" | "accent-900" | "neutral-900" | "neutral-700" | "neutral-500" | "neutral-300" | "neutral-100" | "positive-700" | "positive-300" | "warning-700" | "warning-300" | "negative-700" | "negative-300" | "support-01" | "support-02" | "support-03"

Cor das bordas do componente

bottom?: string | number

A distância do elemento em relação à parte inferior.

boxShadow?: string

Efeito de sombra

checked?: boolean
color?: "none" | "primary-100" | "primary-300" | "primary-500" | "primary-700" | "primary-900" | "secondary-100" | "secondary-300" | "secondary-500" | "secondary-700" | "secondary-900" | "tertiary-100" | "tertiary-300" | "tertiary-500" | "tertiary-700" | "tertiary-900" | "accent-100" | "accent-300" | "accent-500" | "accent-700" | "accent-900" | "neutral-900" | "neutral-700" | "neutral-500" | "neutral-300" | "neutral-100" | "positive-700" | "positive-300" | "warning-700" | "warning-300" | "negative-700" | "negative-300" | "support-01" | "support-02" | "support-03"

Cor do texto no componente

display?: "none" | "block" | "flex" | "inline" | "inline-block" | "inline-flex"

A exibição do elemento.

fontFamily?: string

A família da fonte.

fontSize?: "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo"

O tamanho da fonte.

fontStyle?: "normal" | "italic" | "oblique"

O estilo da fonte.

fontWeight?: "medium" | "light" | "bold" | "regular"

A espessura da fonte.

height?: string | number

A altura do elemento.

id?: string

Preenche o ID do elemento (não tem muito uso prático)

left?: string | number

A distância do elemento em relação à esquerda.

letterSpacing?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O espaçamento entre as letras do texto.

lineHeight?: "small" | "medium" | "large"

A altura da linha do texto.

margin?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem geral.

marginBottom?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem inferior.

marginHorizontal?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem horizontal (esquerda e direita).

marginLeft?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem esquerda.

marginRight?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem direita.

marginTop?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem superior.

marginVertical?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

A margem vertical (superior e inferior).

maxHeight?: string | number

A altura máxima do elemento.

maxWidth?: string | number

A largura máxima do elemento.

minHeight?: string | number

A altura mínima do elemento.

minWidth?: string | number

A largura mínima do elemento.

opacity?: "none" | "light" | "half" | "transparent"

A opacidade do elemento.

overflow?: "scroll" | "auto" | "hidden" | "visible" | "overlay"

O comportamento de overflow geral.

overflowWrap?: "normal" | "break-word"

O comportamento de quebra de palavra do texto.

overflowX?: "scroll" | "auto" | "hidden" | "visible" | "overlay"

O comportamento de overflow horizontal.

overflowY?: "scroll" | "auto" | "hidden" | "visible" | "overlay"

O comportamento de overflow vertical.

padding?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento geral.

paddingBottom?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento inferior.

paddingHorizontal?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento horizontal (esquerdo e direito).

paddingLeft?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento esquerdo.

paddingRight?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento direito.

paddingTop?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento superior.

paddingVertical?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O preenchimento vertical (superior e inferior).

position?: "fixed" | "static" | "relative" | "absolute" | "sticky"

A posição do elemento.

right?: string | number

A distância do elemento em relação à direita.

textAlign?: "center" | "left" | "right" | "justify"

O alinhamento do texto.

textDecoration?: "none" | "blink" | "underline" | "overline" | "line-through"

A decoração do texto.

textIndent?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O recuo do texto na primeira linha.

textJustify?: "auto" | "inter-character" | "inter-word" | "distribute"

O alinhamento do texto justificado.

textOverflow?: "clip" | "ellipsis"

O comportamento de quebra de texto quando há overflow.

textRendering?: "auto" | "optimizeSpeed" | "optimizeLegibility" | "geometricPrecision"

O método de renderização do texto.

textTransform?: "none" | "capitalize" | "uppercase" | "lowercase"

A transformação do texto.

top?: string | number

A distância do elemento em relação ao topo.

visibility?: "hidden" | "visible" | "collapse"

A visibilidade do elemento.

visualState?: "success" | "danger" | "warning"

Determina o estado visual do componente e seus filhos.

whiteSpace?: "normal" | "pre" | "nowrap" | "pre-wrap" | "pre-line"

O comportamento de quebra de linha do texto.

wide?: boolean

Usar a opção wide deixa ele como um bloco ao invés de texto linear.

width?: string | number

A largura do elemento.

wordSpacing?: "none" | "small" | "medium" | "quark" | "nano" | "extra-small" | "large" | "extra-large" | "big" | "display" | "huge" | "giant" | "jumbo" | "immense"

O espaçamento entre as palavras do texto.

zIndex?: number

O valor de zIndex do elemento.