0.1.0 • Published 3 years ago

fc-card-component v0.1.0

Weekly downloads
1
License
MIT
Repository
-
Last release
3 years ago

FCComponent (Flip card component)

Awesome Version Star

Installation

npm i fc-component

Usage

import React from 'react';
import FlipCard from 'fc-component';

function App() {
  return <div>
    <FlipCard />
  </div>
}

Documentation

PropertyTypeDescriptionOptions
colorFrontStringBackground color for front cardref. Color guide
colorBackStringBackground color for back cardref. Color guide
textColorFrontStringText color for front cardref. Color guide
textColorBackStringText color for back cardref. Color guide
textFrontStringText will display on front cardAny string
textBackStringText will display on back cardAny String
heightNumberHeight of component1...∞
widthNumberWidth of component1...∞
innerPaddingNumberPadding of component1...∞
fontSizeNumberSize of font, attribute for textFront and textBack1...∞
rotationAxisStringThe axis of rotation on which the card will rotate."x" or "y"

Color

Exemple

import FlipCard from "fc-component";

function App() {
  return (
    <div className="App">
      <FlipCard
        height={400}
        width={300}
        rotationAxis="x"
        colorFront="dark-black"
        textColorFront="light-orange"
        textColorBack="purple"
        textFront="Voici un exemple de Custom Flip Card"
        textBack="ENJOY THIS !"
        innerPadding={20}
        fontSize={27}
      />
    </div>
  );
}

export default App;

Exemple 2

import FlipCard from "fc-component";

function App() {
  return (
    <div className="App">
      <FlipCard
        height={400}
        width={300}
        rotationAxis="x"
        colorFront="light-blue"
        textColorFront="dark-black"
        textColorBack="purple"
        textFront="Bienvenue sur mon REPO !"
        textBack="ENJOY THIS !"
        innerPadding={30}
        fontSize={32}
      />
    </div>
  );
}

export default App;

Exemple 3

import FlipCard from "fc-component";

function App() {
  return (
    <div className="App">
      <FlipCard
        height={400}
        width={300}
        rotationAxis="y"
        colorFront="light-green"
        colorBack="dark-green"
        textColorFront="dark-black"
        textColorBack="dark-black"
        textFront="You love IT ?"
        textBack="Star my repo to tell me ❤️"
        innerPadding={30}
        fontSize={40}
      />
    </div>
  );
}

export default App;

Contribute

Show your ❤️ and support by giving a ⭐. Any suggestions are welcome!

License

Licensed under MIT