# @scripty/react-card

> lightweight react card component.

Latest version **0.1.13** (published 2020-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @scripty/react-card
pnpm add @scripty/react-card
yarn add @scripty/react-card
bun add @scripty/react-card
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.13 |
| Published | 2020-07-30 |
| First published | 2020-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 34.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Danijel Garic |
| Maintainers | garic |
| Keywords | react, card, react card, react components |

## Links

- npm: https://www.npmjs.com/package/@scripty/react-card
- Repository: https://github.com/scripty08/react-card
- Homepage: https://garic.biz
- Issues: https://github.com/scripty08/react-card/issues
- npm.io page: https://npm.io/package/@scripty/react-card

## Dependencies (6)

- [react](https://npm.io/package/react.md) 16.11.0
- [react-dom](https://npm.io/package/react-dom.md) 16.11.0
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@ant-design/icons](https://npm.io/package/@ant-design/icons.md) ^4.2.1
- [styled-components](https://npm.io/package/styled-components.md) ^5.1.1
- [@scripty/react-buttons](https://npm.io/package/@scripty/react-buttons.md) ^0.1.8

## 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.13 (latest) — 2020-07-30
- 0.1.12 — 2020-07-30
- 0.1.11 — 2020-07-30
- 0.1.10 — 2020-07-29
- 0.1.9 — 2020-07-27
- 0.1.8 — 2020-07-27
- 0.1.7 — 2020-07-24
- 0.1.6 — 2020-07-24
- 0.1.5 — 2020-07-24
- 0.1.4 — 2020-07-23
- 0.1.3 — 2020-07-23
- 0.1.2 — 2020-07-16
- 0.1.1 — 2020-07-16
- 0.1.0 — 2020-07-07

## README

# @scripty/react-card

# Description

lightweight react card component.

![alt text](./card.png "@scripty/react-card")

# Usage
```bash
npm install -s @scripty/react-card
```

##### Client: Example.jsx

```javascript
import React, { Fragment } from 'react';
import { Card } from '@src';

export const Example = () => {

    const onClick = (e) => {
        console.log(e);
    }

    return (
        <Fragment>
            <h2>Card</h2>
            <Card
                title={'Simple Card'}
                width={300}
            >
                Simple Card Content
            </Card>

            <h2>Card with Actions</h2>
            <Card
                title={'Card with actions'}
                width={300}
                onEdit={onClick}
                onClose={onClick}
            >
                Simple Card Content
            </Card>

            <h2>Card with custom actions</h2>
            <Card
                title={'Card with actions'}
                width={300}
                extra={'custom field'}
            >
                Simple Card Content
            </Card>

            <h2>Card with ok and cancel buttons</h2>
            <Card
                title={'Card with actions'}
                width={300}
                onEdit={onClick}
                onClose={onClick}
                onOk={onClick}
                onCancel={onClick}
            >
                Simple Card Content
            </Card>
        </Fragment>
    );
};
```

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