Skip to content

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 versionLinux Build StatusWindows Build StatusCoverage StatusGreenkeeper badgeKnown Vulnerabilities

install:

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

usage:

markdown:
<P>Text to wrap</P>
javascript:
exportconstView=()=>[P('Text to wrap')]
array:
exportconstView=()=>[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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages