Text

Component name: <v-text>

Using a consistent typographic scale and a limited set of spacing values is widely regarded as good practices in visual design. This is enforced via this component.

Examples

Basic

Semantics and appearance

In the example below it's clear semantics and appearance are separated. Different tags can have the same appearance. This allows you to think about semantics and appearance seperately.

Different header levels with same appearance:

Utility classes

For different styles and behavior you can apply utility classes.

Content

v-text supports child content / components.

Responsiveness

Utilize font-md-size and font-lg-size for responsive typography scaling.

Scale

The type scale consists of 9 sizes.

Size Example
1
Example
2
Example
3
Example
4
Example
5
Example
6
Example
7
Example
8
Example
9
Example

API

Name Type Description Default
tag String Changes the underlying HTML element.

Valid value: HTML element
div
font-size Number Defines the size of the text.

Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9
3
font-md-size Number A breakpoint specific version of font-size -
font-lg-size Number A breakpoint specific version of font-size -
bold Boolean Defines bold characters false
italic Boolean Defines italic font style. false

Notice

All other properties that are not defined above, will be passed to the component as html attributes. This is especially useful for adding the class attribute.