This component is distributed with npm. After installing npm, you can install the vf-heading
with this command.
$ yarn add --dev @visual-framework/vf-heading
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-heading/index.scss";
Make sure you import Sass requirements along with the modules.
File system location: components/vf-heading
{% render '@vf-heading--default', {
"component-type": "element"
} %}
<p class="vf-text"></p>
{% render '@vf-heading--display', {
"component-type": "element",
"type": 1,
"heading": "This heading size is extra large and inverted",
"style": "invert",
"tags": "h1"
} %}
<h1 class="vf-text vf-text-heading--1 vf-text--invert">This heading size is extra large and inverted</h1>
{% render '@vf-heading--extra-large', {
"component-type": "element",
"type": 2,
"heading": "This heading size is extra large",
"tags": "h1"
} %}
<h1 class="vf-text vf-text-heading--2">This heading size is extra large</h1>
{% render '@vf-heading--large', {
"component-type": "element",
"type": 3,
"heading": "This heading size is large",
"tags": "h2"
} %}
<h2 class="vf-text vf-text-heading--3">This heading size is large</h2>
{% render '@vf-heading--regular', {
"component-type": "element",
"type": 4,
"heading": "This heading size is regular",
"tags": "h3"
} %}
<h3 class="vf-text vf-text-heading--4">This heading size is regular</h3>
{% render '@vf-heading--small', {
"component-type": "element",
"type": 5,
"heading": "This heading size is small",
"tags": "h4"
} %}
<h4 class="vf-text vf-text-heading--5">This heading size is small</h4>
vf-componenet-rollup
vf-core-components
vf-local-overrides
vf-sample
This page is part of the components section.