Typography

El componente de Tipografía proporciona estilos de texto estandarizados en toda la aplicación.

Cuándo usar

  • Cuando se necesite mostrar contenidos de título o párrafo en Artículos/Blogs/Notas.
  • Cuando necesites textos copiables/editables/con elipsis.

Ejemplo de Uso

Componente de Título

Mostrar el título en diferente nivel.

H1

H1 Heading

H2

H2 Heading

H3

H3 Heading

Componente de Texto

Proporciona múltiples tipos de texto.

Body

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping. However some fonts, called variable fonts, can support a range of weights with a more or less fine granularity, and this can give the designer a much closer degree of control over the chosen weight.

BodyHEAVY

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping. However some fonts, called variable fonts, can support a range of weights with a more or less fine granularity.

Body Small

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping.

Body SmallHEAVY

Most fonts have a particular weight which corresponds to one of the numbers in Common weight name mapping.

Polimorfismo

Puedes utilizar la propiedad as para renderizar el componente como cualquier elemento HTML válido manteniendo el estilo visual de variant.

Span looking like H1

API

Propiedad
Descripción
Tipo
Por defecto

as

El elemento o componente HTML a renderizar. 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'a' | 'div' 'p'

variant

La variante de estilo visual de la tipografía. 'h1' | 'h2' | 'h3' | 'body' | 'body-heavy' | 'body-small' | 'body-small-heavy' 'body'

class

Clases CSS adicionales para aplicar. string -