@magic-modules/p

0.0.1 • Public • Published

@magic-modules/p

this is the @magic-modules P component.

if it receives a string as argument, it will return a paragraph wrapping it. if an array is received, a div containing multiple paragraphs will be returned.

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge Known Vulnerabilities

install:

npm install --save-exact @magic-modules/p

usage:

markdown:
<P>Text to wrap</P>
javascript:
export const View = () => [P('Text to wrap')]
array:
export const View = () => [
  P([
    'First paragraph',
    'Second paragraph',
    ['paragraph with a ', Link({ to: '/' }, 'link'), ' wrapped in the text.'],
  ]),
]

changelog

0.0.1

first release.

0.0.2 - unreleased

...

Readme

Keywords

Package Sidebar

Install

npm i @magic-modules/p

Weekly Downloads

0

Version

0.0.1

License

AGPL-3.0

Unpacked Size

38.3 kB

Total Files

4

Last publish

Collaborators

  • jascha