This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@guardian/src-ed-lines
TypeScript icon, indicating that this package has built-in type declarations

3.9.0 • Public • Published

Lines

📣 For more context and visual guides relating to lines usage, visit the Source Design System website

Install

$ yarn add @guardian/src-ed-lines @guardian/src-foundations

or

$ npm i @guardian/src-ed-lines @guardian/src-foundations

Use

import { Lines } from '@guardian/src-ed-lines';

const Section = () => (
    <>
        <Lines count={8} />
        <Lines effect="squiggly" />
        <Lines count={4} effect="dotted" colour="blue" />
    </>
);

Lines Props

effect

"straight" | "squiggly" | "dotted" | "dashed" = "straight"

The appearance of the lines.

count

1 | 4 | 8 = 4

How many lines appear.

color

string = line.primary

The colour of the lines

Readme

Keywords

none

Package Sidebar

Install

npm i @guardian/src-ed-lines

Weekly Downloads

92

Version

3.9.0

License

Apache-2.0

Unpacked Size

24.3 kB

Total Files

32

Last publish

Collaborators

  • joecowton1
  • guardian-developers
  • akash1810
  • reetta
  • sndrs
  • mxdvl