lightweight react card component.
npm install @scripty/react-cardbash
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 (
Card
title={'Simple Card'}
width={300}
>
Simple Card Content
Card with Actions
title={'Card with actions'}
width={300}
onEdit={onClick}
onClose={onClick}
>
Simple Card Content
Card with custom actions
title={'Card with actions'}
width={300}
extra={'custom field'}
>
Simple Card Content
Card with ok and cancel buttons
title={'Card with actions'}
width={300}
onEdit={onClick}
onClose={onClick}
onOk={onClick}
onCancel={onClick}
>
Simple Card Content
);
};
``