0.2.4 • Published 4 years ago

fluff-tail v0.2.4

Weekly downloads
27
License
MIT
Repository
github
Last release
4 years ago

How to use

import { Accordian } from "fluff-tail";

Accordian!

PropTypeWhat they do
headingColorstringcolor for the heading
descColorstringcolor for the description
hrefstringurl to route to when user click button
titlestringtitle text
descstringdescription text
openNewPagebooleanwhen user click open link in new page default false
import { CardHover } from "fluff-tail";

Card Hover!

PropTypeWhat they do
imagestringimage for the background
altstringalt text for image
hrefstringurl to route to when user click button
titlestringtitle text
descstringdescription text
btnTitlestringbutton text
openNewPagebooleanwhen user click open link in new page default false
showBtnbooleanwheather to show button or not default true
import { ArticleDeck } from "fluff-tail";

Article Deck!

PropTypeWhat they do
numbernumbernumber of card to draw (1-4)
subTitlestringtext for the sub title
hrefstringurl to route to when user click button
titlestringtitle text
subTitleColorstringsub title color
TitleColorstringtitle color
openNewPagebooleanwhen user click open link in new page default false
widthnumberwidth of the card
heightnumberheight of the card
import { FoldingCard } from "fluff-tail";

folding card!

PropTypeWhat they do
hrefstringurl to route to when user click
titlestringtitle text
descstringdescription text
subTitleLeftstringtext for left sub title
subTitleRightstringtext for right sub title
backgroundColorstringbackground color of the card
openNewPagebooleanwhen user click open link in new page default false
titleColorstringcolor for the title
folderHoverColorstringbackground color for the folding card when hover
mainBorderColorstringborder color for the front card / main card
secondaryBorderColorstringborder color for the back card / secondary card
arrowColorstringcolor for the arrow
subTitleColorstringcolor for the sub-title both left and right
stripeColorstringcolor for the stripes on back card
widthnumberwidth of the card
heightnumberheight of the card
import { ProfileCard } from "fluff-tail";

profile card!

PropTypeWhat they do
imagestringimage for the background
altstringalt text for image
namestringname of the profile
rolestringrole of the profile
roleColorstringcolor for role text
nameColorstringcolor for name text
backgroundColorstringbackground color of the card
boxShadowstringbox shadow for the card
disableBackCardsbooleandisable all back cards
disableOneCardbooleandisable one back card
gapstringgap between image and card
widthnumberwidth of the card
heightnumberheight of the card
import { ParallaxDepth } from "fluff-tail";

parallax depth!

PropTypeWhat they do
imagestringimage for the background
boxShadowColorstringcolor for box shadow
insideBorderColorstringcolor for inside border
borderColorstringcolor for border
imagestringimage for the background
descstringdescription text
translateXnumberhow much to translateX default 40
translateYnumberhow much to translateY default 40
rotateXnumberhow much to rotateX default 30
rotateYnumberhow much to rotateY default 30
widthnumberwidth of the card
heightnumberheight of the card

How to install

npm i fluff-tail

Import component that you want to use

Example

import { CardHover } from "fluff-tail";

<CardHover
  title={"Title"}
  desc={
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempo incididunt"
  }
  href={"https://toyoursite.com"}
  btnTitle={"Go to My Site"}
  image={"Pass in a background image"}
  alt={"alt text for image"}
  openNewPage={true} // target set to _blank when set to true
  showBtn={true} // Wheather to show button or not
/>;

Components supported

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago