reactjs-mtg-card
v1.0.6
Published
Made with create-react-library
Downloads
18
Readme
reactjs-mtg-card
Made with create-react-library
Magic: The Gathering Reactjs Card Generator
MTG Reactjs is a ongoing project to generate Reactjs cards as you want.
Based on Davide Iaiunese good work. Uses mana-font as the mana symbols and can use keyrune as the set symbols (see the example folder).
Install
npm install reactjs-mtg-card keyrune mana-font
or
yarn add reactjs-mtg-card keyrune mana-font
Usage
import React from 'react'
import 'reactjs-mtg-card/dist/index.css'
import { MagicCard } from 'reactjs-mtg-card'
const MyApp = () => {
return (
<MagicCard
cardColor="green"
name='Oath of Nissa'
manaCost='{2}{G}{U}{W}{R}{B}'
descriptions={[
'When Oath of Nissa enters the battlefield, look at the top three cards of your library. You may reveal a creature, land, or planeswalker card from among them and put it into your hand. Put the rest on the bottom of your library in any order.',
'You may spend mana as though it were mana of any color to cast planeswalker spells.',
]}
expansionSymbol="https://image.ibb.co/kzaLjn/OGW_R.png"
artUrl="https://image.ibb.co/fqdLEn/nissa.jpg"
type='Legendary Enchantment'
flavorText={['"For the life of every plane, I will keep watch."']}
fotterLeftText={[
'140/184 R',
'OGW • EN Wesley Burt',
]}
fotterRightText={[
'™ & © 2016 Wizards of the Coast',
]}
/>
)
}
export default MyApp
License
MIT © germanyn