A vue component that renders animated pokemon sprites.
Visit - Link
- Install the package
$ yarn add --save vue-poke-sprites
- Import the component
import PokeSprite from "./components/PokeSprite.vue";
.
.
export default {
.
.
components: {
PokeSprite
}
.
.
}
- Use it
<PokeSprite pokemon="lugia" spriteClass="pokemon-lugia"></PokeSprite>
-
pokemon - Pass the name or the ID of the pokemon.
-
spriteClass - Pass in a class name to modify as you see fit.
- A corresponding React component is here
Found a bug? please create an issue