About
JokeCard is a React component that will display a different joke every business day
Installation
npm install --save @fatherly-funnies/joke-card
Utilization
JokeCard Component
import { JokeCard } from '@fatherly-funnies/joke-card';
Props
backgroundColor
: (String, optional, default='#cccccc') Set the background color for the Paper containing the joke
borderRadius
: (String, optional, default='10px') Sets the border radius on the joke container
color
: (String, optional, default='black') Set the color of the joke text
iconColor
: (String, optional, default='#000') Set the color of the like/dislike icons
marginLeft
: (String, optional, default='auto') Sets the left margin for the joke container
marginRight
: (String, optional, default='auto') Sets the right margin for the joke container
padding
: (number, optional, default=10) Sets the padding around the joke text
showTags
: (boolean, optional, default=true) Sets whether to display the tags on the joke if any exist
width
: (String, optional, default='50%') Set the width of the component