cob-components-game-card
v1.0.7
Published
**A collection of reusable game card components.**
Downloads
22
Readme
cob-componenents-game-card
A collection of reusable game card components.
Installation
npm install cob-components-game-card
or
yarn add cob-components-game-card
Usage
import { GameCard } from 'cob-componenents-game-card';
<GameCard
name="The Last of Us"
genre={['Action', 'Adventure']}
platform={['PlayStation 3', 'PlayStation 4', 'PlayStation 5']}
shortDescription="A post-apocalyptic action-adventure game set in a world ravaged by a fungal infection."
image={{
url: '[invalid URL removed]',
width: '300px',
height: '200px'
}}
/>
Customization
- Styling: Customize the appearance of the GameCard component using CSS classes or inline styles. The component has a default CSS class game-card that you can modify.
- Image: Provide a custom image URL, width, and height to display a different image for the game.