@citizensadvice/cads-line-limit

Utility

Usage no npm install needed!

<script type="module">
  import citizensadviceCadsLineLimit from 'https://cdn.skypack.dev/@citizensadvice/cads-line-limit';
</script>

README

Line limit

npm (scoped)

Component type

  • Utility

Dependencies:

Name Description
@citizensadvice/cads-support System-wide global variables and functions

Installation

$ npm install @citizensadvice/cads-line-limit
@import "@citizensadvice/cads-line-limit/index.scss";

You can also make use of the unpkg service, try adding the link below to the head of your HTML file <link src="https://unpkg.com/@citizensadvice/cads-line-limit@latest/build/cads.line-limit.css" />

Implementation

A simple helper class to restrict a lines lenth based on the ideal words per line for readability.