Code Monkey home page Code Monkey logo

react-card's Introduction

react-card

Card for react.

version license size download

installation

npm install -S @jswork/react-card

properties

Name Type Required Default Description
className string false - The extended className for component.
active bool false - If the card is active.
disabled bool false - If the card is not enable.
hoverable bool false - If the card can hover and with :hover effect.
clickable bool false - If the card can click with :active effect.
shadowable bool false true If the card show with shadow.

usage

  1. import css
@import "~@jswork/wsui-card/dist/style.scss";

// customize your styles:
$react-card-options: ()
  1. import js
import ReactDemokit from '@jswork/react-demokit';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactCard from '@jswork/react-card';
import './assets/style.scss';

class App extends React.Component {
  render() {
    return (
      <ReactDemokit
        className="p-3 app-container"
        url="https://github.com/afeiship/react-card">
        <ReactCard>
          <img
            src="http://himg.bdimg.com/sys/portrait/item/be10475f686d6c73db00.jpg"
            width="100%"
          />
        </ReactCard>

        <ReactCard hoverable clickable>
          <p>
            少年时,想碰到一个聂小倩,拼了性命爱一场,天亮前带着她的魂魄远走他乡。
          </p>
          <p>
            青年时,想碰到一个白素贞,家大业大,要啥有啥,吃完软饭一抹嘴,还有人负责把她关进雷峰塔。
          </p>
          <p>
            中年时,想要一个田螺姑娘,温婉可人,红袖添香,半夜写累了,让她变回原形,加干辣椒、花椒、姜、蒜片爆炒,淋入香油,起锅装盘。
          </p>
        </ReactCard>
      </ReactDemokit>
    );
  }
}

ReactDOM.render(<App />, document.getElementById('app'));

documentation

license

Code released under the MIT license.

react-card's People

Contributors

afeiship avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.