npm.io
1.0.0 • Published 4 years ago

articlize

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

Articlize

getWithAttachedArticle

pass a word, and get the appropriate article prepended to it

import {getWithAttachedArticle} from "sample-library";

const phrase = getWithAttachedArticle("shoe");

// a shoe

const phrase = getWithAttachedArticle("octopus");

// an octopus

ColorButton

pass the color and text and get a button of passed color and text

import {ColorButton} from "sample-library";

<ColorButton color={red} buttonText="click me" />

<ColorButton color="#22c55e
" buttonText="click me">