@fatherly-funnies/joke-card
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

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

Package Sidebar

Install

npm i @fatherly-funnies/joke-card

Weekly Downloads

0

Version

1.4.0

License

ISC

Unpacked Size

40.7 kB

Total Files

50

Last publish

Collaborators

  • fatherly-funnies