https://github.com/afeiship/react-card
Card for react.
https://github.com/afeiship/react-card
active card clickable component components disabled hoverab react shadow shadowable
Last synced: about 1 month ago
JSON representation
Card for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-card
- Owner: afeiship
- License: mit
- Created: 2019-12-12T11:54:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-24T09:37:00.000Z (about 5 years ago)
- Last Synced: 2025-10-28T03:43:09.095Z (7 months ago)
- Topics: active, card, clickable, component, components, disabled, hoverab, react, shadow, shadowable
- Language: JavaScript
- Homepage:
- Size: 324 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-card
> Card for react.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```shell
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
```scss
@import "~@jswork/wsui-card/dist/style.scss";
// customize your styles:
$react-card-options: ()
```
2. import js
```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 (
少年时,想碰到一个聂小倩,拼了性命爱一场,天亮前带着她的魂魄远走他乡。
青年时,想碰到一个白素贞,家大业大,要啥有啥,吃完软饭一抹嘴,还有人负责把她关进雷峰塔。
中年时,想要一个田螺姑娘,温婉可人,红袖添香,半夜写累了,让她变回原形,加干辣椒、花椒、姜、蒜片爆炒,淋入香油,起锅装盘。
);
}
}
ReactDOM.render(, document.getElementById('app'));
```
## documentation
- https://afeiship.github.io/react-card/
## license
Code released under [the MIT license](https://github.com/afeiship/react-card/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/react-card
[version-url]: https://npmjs.org/package/@jswork/react-card
[license-image]: https://img.shields.io/npm/l/@jswork/react-card
[license-url]: https://github.com/afeiship/react-card/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-card
[size-url]: https://github.com/afeiship/react-card/blob/master/dist/react-card.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/react-card
[download-url]: https://www.npmjs.com/package/@jswork/react-card