Components
Typography

Typography

Import

import { VKTypography } from "@vivakits/react-components";

Variant

The Typography component comes with 7 different variants that you can change using the variant prop.

h1

h2

h3

h4

h5
h6

paragraph

Color

The Typography component comes with 8 different colors that you can change using the color prop.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

Size

The Typography component comes with different size that you can change using the size prop.

Actions speak louder than words.

Actions speak louder than words.

Actions speak louder than words.

Actions speak louder than words.

Actions speak louder than words.

Actions speak louder than words.

Actions speak louder than words.

Decoration

The Typography component comes with different decorations and decoration colors that you can change using the decoration and decorationColor prop.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

Spacing and Breaks

The Typography component comes with word breaks and word spacings that you can change using the wordBreak and wordSpacing prop.

Word Break

The longest word in any of the major English language dictionaries is pneumonoultramicroscopicsilicovolcanoconiosis, a word that refers to a lung disease contracted from the inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.

The longest word in any of the major English language dictionaries is pneumonoultramicroscopicsilicovolcanoconiosis, a word that refers to a lung disease contracted from the inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.

The longest word in any of the major English language dictionaries is pneumonoultramicroscopicsilicovolcanoconiosis, a word that refers to a lung disease contracted from the inhalation of very fine silica particles, specifically from a volcano; medically, it is the same as silicosis.

Word Spacing

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.
The quick brown fox jumps over the lazy dog.

The quick brown fox jumps over the lazy dog.

API Reference

AttributeTypeDescriptionDefault
varianth1h2h3h4h5h6paragraphChanges typography sizeparagraph
colordefaultprimarysecondarysuccessdangerwarningdarklightChanges typography colordefault
sizexssmbasemdlgxl2xlChanges Text size-
decorationnoneunderlineoverlinelineThroughChanges decoration on typography textnone
decorationColordefaultprimarysecondarysuccessdangerwarningdarklightChanges decoration color on typography textdefault
weightdefault100200300400500600700800900Changes font weight on typography textdefault
fontFamilysansSerifserifmonoChanges font family on typography text-
overflownonetruncateellipsisclipChanges overflow on typography textnone
wordSpacingtighttighternormalwidewiderwidestControls word spacing in typography textnormal
alignstartendleftrightjustifycenterChanges alignment on typography textleft
wordBreakdefaultnormalwordsallkeepControls word breaks in typography textdefault