Typography
Use the Typography component for all of your styled text needs
Basic Usage
import { Typography } from '@krakentech/coral';
<Typography>The five boxing wizards jump quickly</Typography>The five boxing wizards jump quickly
Properties
color
<Typography color="success500">The five boxing wizards jump quickly</Typography>The five boxing wizards jump quickly
component
It may be you want the style of a Heading 1, but the semantics of a Heading 2. In this case, you can use the component prop to change the underlying HTML element.
<Typography textStyle="h1" component="h2">
The five boxing wizards jump quickly
</Typography>The five boxing wizards jump quickly
textAlign
<Typography textAlign="center">The five boxing wizards jump quickly</Typography>The five boxing wizards jump quickly
textTransform
<Typography textTransform="uppercase">Wizard</Typography>Wizard
textWrap
<Typography textWrap="balance">
Aliquip incididunt sunt dolore laborum aliquip cupidatat sint mollit commodo
dolor. Aute cillum excepteur eu excepteur. Cupidatat cupidatat nostrud nisi
dolore non. Aliqua amet nostrud aute aute exercitation voluptate eiusmod. Ea
veniam elit quis eiusmod magna sunt irure velit consectetur veniam do sunt.
Adipisicing deserunt commodo id et ullamco consequat.
</Typography>Aliquip incididunt sunt dolore laborum aliquip cupidatat sint mollit commodo dolor. Aute cillum excepteur eu excepteur. Cupidatat cupidatat nostrud nisi dolore non. Aliqua amet nostrud aute aute exercitation voluptate eiusmod. Ea veniam elit quis eiusmod magna sunt irure velit consectetur veniam do sunt. Adipisicing deserunt commodo id et ullamco consequat.
hyphens
<Typography hyphens="auto">
Aliquip incididunt sunt dolore laborum aliquip cupidatat sint mollit commodo
dolor. Aute cillum excepteur eu excepteur. Cupidatat cupidatat nostrud nisi
dolore non. Aliqua amet nostrud aute aute exercitation voluptate eiusmod. Ea
veniam elit quis eiusmod magna sunt irure velit consectetur veniam do sunt.
Adipisicing deserunt commodo id et ullamco consequat.
</Typography>Aliquip incididunt sunt dolore laborum aliquip cupidatat sint mollit commodo dolor. Aute cillum excepteur eu excepteur. Cupidatat cupidatat nostrud nisi dolore non. Aliqua amet nostrud aute aute exercitation voluptate eiusmod. Ea veniam elit quis eiusmod magna sunt irure velit consectetur veniam do sunt. Adipisicing deserunt commodo id et ullamco consequat.
textStyle
<Typography textStyle="h3">The five boxing wizards jump quickly</Typography>The five boxing wizards jump quickly
Variants
<Typography textStyle="hero1">The five boxing wizards jump quickly</Typography>
<Typography textStyle="hero2">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h1">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h2">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h3">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h4">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h5">The five boxing wizards jump quickly</Typography>
<Typography textStyle="h6">The five boxing wizards jump quickly</Typography>
<Typography textStyle="button">The five boxing wizards jump quickly</Typography>
<Typography textStyle="body1">The five boxing wizards jump quickly</Typography>
<Typography textStyle="body2">The five boxing wizards jump quickly</Typography>
<Typography textStyle="caption">The five boxing wizards jump quickly</Typography>The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quicklyThe five boxing wizards jump quickly
The five boxing wizards jump quickly
The five boxing wizards jump quickly
Responsiveness
<Typography
color={{ base: "primary500", lg: "secondary500" }}
textAlign={{ base: 'center', lg: 'left' }}
>
color
</Typography>Responsive Element