Accueil
Components
Typography
Typography
La Typography doit être utilisé pour contenir tous les textes. Composant de type Text (tamagui).
Examples
Styles
core
TypographyDefault
Contenu par défaut
tsx
Copier
export
const
TypographyDefault
=
(
)
=>
<
Typography
>
Contenu par défaut
</
Typography
>
;
TypographyPaddedWithColor
Texte avec padding et couleur
tsx
Copier
export
const
TypographyPaddedWithColor
=
(
)
=>
(
<
Typography
p
=
{
8
}
color
=
{
'blue'
}
>
Texte avec padding et couleur
</
Typography
>
)
;
TypographyStyleItalic
Texte en italique
tsx
Copier
export
const
TypographyStyleItalic
=
(
)
=>
<
Typography
fontStyle
=
"
italic
"
>
Texte en italique
</
Typography
>
;
TypographyStyleUnderline
Texte en souligné
tsx
Copier
export
const
TypographyStyleUnderline
=
(
)
=>
<
Typography
textDecorationLine
=
"
underline
"
>
Texte en souligné
</
Typography
>
;
TypographyStyleLineThrough
Texte barré
tsx
Copier
export
const
TypographyStyleLineThrough
=
(
)
=>
<
Typography
textDecorationLine
=
"
line-through
"
>
Texte barré
</
Typography
>
;
TypographyTransformCapitalize
avec une majuscule
tsx
Copier
export
const
TypographyTransformCapitalize
=
(
)
=>
(
<
Typography
textTransform
=
"
capitalize
"
>
avec une majuscule
</
Typography
>
)
;
TypographyTransformUppercase
En majuscule
tsx
Copier
export
const
TypographyTransformUppercase
=
(
)
=>
<
Typography
textTransform
=
"
uppercase
"
>
En majuscule
</
Typography
>
;
TypographyAligneeADroite
Texte aligné à droite
tsx
Copier
export
const
TypographyAligneeADroite
=
(
)
=>
(
<
Typography
tag
=
"
typography-alignee-a-droite
"
style
=
{
{
textAlign
:
'right'
}
}
>
Texte aligné à droite
</
Typography
>
)
;