Skip to content

@magic P module. receives string or array of strings and wraps them in one or more p elements.

License

Notifications You must be signed in to change notification settings

magic-modules/p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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

...

About

@magic P module. receives string or array of strings and wraps them in one or more p elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published