npm.io
1.6.2 • Published 3d ago

@visual-framework/vf-summary

Licence
Apache 2.0
Version
1.6.2
Deps
0
Size
166 kB
Vulns
0
Weekly
0

Summary component

npm version

About

Summaries in the form of text, headlines and often imagery for a list of like content, including: articles, jobs, news and people profiles.

Usage

Publications summary

If the vf-summary__author list is truncated to a certain number of authors you will need to add vf-u-text--et-al to the <p> - <p class="vf-summary__author | vf-u-text--et-al"> - for it to add "et al" to the end of the list.

Profile summary

The vf-summary--profile variant has been deprecated. Please use the vf-profile component.

Decorative image variant

The vf-summary--has-decorative-image variant has been deprecated. Please use the vf-summary--news-has-image variant.

Install

This component is distributed with npm. After installing npm, you can install the vf-summary with this command.

$ yarn add --dev @visual-framework/vf-summary
Sass/CSS

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-summary/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help

Keywords