For basic text formatting and sizes.
This component is distributed with npm. After installing npm, you can install the vf-text
with this command.
$ yarn add --dev @visual-framework/vf-text
The source files included are written in Sass(scss
). You can point your Sass include-path
at your node_modules
directory and import it like this.
@import "@visual-framework/vf-text/index.scss";
Make sure you import Sass requirements along with the modules.
File system location: components/vf-text
{% render '@vf-text--default', {
"component-type": "element"
} %}
<p class="vf-text-body"></p>
{% render '@vf-text--extra-large', {
"component-type": "element",
"text": "This text is extra large",
"type": 1
} %}
This text is extra large
<p class="vf-text-body vf-text-body--1">This text is extra large</p>
{% render '@vf-text--large', {
"component-type": "element",
"text": "This text is large",
"type": 2
} %}
This text is large
<p class="vf-text-body vf-text-body--2">This text is large</p>
{% render '@vf-text--regular', {
"component-type": "element",
"text": "This text is regular",
"type": 3
} %}
This text is regular
<p class="vf-text-body vf-text-body--3">This text is regular</p>
{% render '@vf-text--small', {
"component-type": "element",
"text": "This text is small",
"type": 4
} %}
This text is small
<p class="vf-text-body vf-text-body--4">This text is small</p>
{% render '@vf-text--extra-small', {
"component-type": "element",
"text": "This text is extra small",
"type": 5
} %}
This text is extra small
<p class="vf-text-body vf-text-body--5">This text is extra small</p>
vf-componenet-rollup
vf-core-components
vf-local-overrides
vf-sample
This page is part of the components section.