@magic-modules/p
v0.0.1
Published
@magic P module. receives string or array of strings and wraps them in one or more p elements.
Downloads
2
Readme
@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.
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
...