# react-user-card

> A user card heavily inspired by Google's Material Design concept written with ReactJS.

Latest version **0.1.1** (published 2014-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-user-card
pnpm add react-user-card
yarn add react-user-card
bun add react-user-card
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-11-02 |
| First published | 2014-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Brian Tomlinson |
| Maintainers | darthlukan |
| Keywords | react-component, react, reactjs, material, card, usercard |

## Links

- npm: https://www.npmjs.com/package/react-user-card
- Repository: https://github.com/darthlukan/react-user-card.git#v0.1.1
- Homepage: https://github.com/darthlukan/react-user-card
- Issues: https://github.com/darthlukan/react-user-card/issues
- npm.io page: https://npm.io/package/react-user-card

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^0.12.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-11-02
- 0.0.1 — 2014-11-01

## README

# react-user-card

> Author: Brian Tomlinson <darthlukan@gmail.com>


## Description

> A user card heavily inspired by [Google's Material Design](http://www.google.com/design/spec/material-design/introduction.html)
written as a [ReactJS](http://facebook.github.io/react/) component.


## TODO

> * ~~Package for NPM/Bower/whatever the JS users are using nowadays~~
> * ~~Optional color params for title background and title font~~
> * ~~Fix CSS inclusion, copying files from installation paths is janky~~
> * Better behavior on mobile screens, current media queries aren't really good enough
> * Cleanups


## Screenshot

> ![Imgur](http://i.imgur.com/Op4RyYZ.png)


## Usage

> The card supports optional css object parameters as shown in the example below:

```javascript
    var React = require('react');
    var Card = React.createFactory(require('react-user-card'));

    var cardStl = {
        backgroundColor: '#fafafa',
        width: '30%',
        height: '20%',
        overflow: 'hidden',
        boxShadow: '.25px .25px 5px .25px',
        borderRadius: '2px 2px 2px 2px',
        zIndex: 5
    };

    var headerStl = {
        backgroundColor: '#901111', // red
        padding: '1%',
        color: '#eceff1',
        position: 'relative'
    };

    var contentStl = {
        color: 'rgb(0, 0, 0, 0.54)',
        padding: '2%'
    };


    React.render(
        Card(
            {
                userimg: 'http://www.gravatar.com/avatar/6a8561ee5706d17a4382a391720db523.png', 
                username: 'DarthLukan', 
                content: 'Dark Lord of the Sith.',
                cardStyle: cardStl,
                headerStyle: headerStl,
                contentStyle: contentStl
            }
        ), document.getElementById('app')
    );
```

> Calling the card with the example code above will render a card that looks like:

> ![Imgur](http://i.imgur.com/JAeFRUY.png)

>> NOTE: Omitting the cardStyle, headerStyle, and contentStyle parameters will render the same
as the one in the "Screenshots" section of the README.


## License
> MIT, see LICENSE file

---
_Source: https://npm.io/package/react-user-card · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
