- MIT License
npm i react-card-component
import { Card } from 'react-card-component';
// default blur:4, transparency:0.2
const NewCard = () => <Card glass><div>HelloWorld</div></Card>);
const NewCard = () => <Card glass glassOption={{blur:5,transparency: 0.1}}><div>HelloWorld</div></Card>);
import Card from 'react-card-component';
const NewCard = () => <Card style={{"color":"red"}}><div>HelloWorld</div></Card>);
import Card from 'react-card-component';
const NewCard = () => <Card background={"red"}><div>HelloWorld</div></Card>);
type hoverMoveType = 'up' | 'left' | `right` | `down` | 'zoom'
import Card from 'react-card-component';
const NewCard = () => <Card hoverType={"zoom"}><div>HelloWorld</div></Card>);
import Card from 'react-card-component';
const NewCard = () => <Card bordered><div>HelloWorld</div></Card>);
import Card from 'react-card-component';
const NewCard = () => <Card outlined><div>HelloWorld</div></Card>);