0.0.1 • Published 1 year ago

@magic-modules/p v0.0.1

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
1 year ago

@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

...