0.0.15 • Published 5 years ago

react-flag-pack v0.0.15

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

React Flag Pack

A project made by Yummygum

Installation

npm install react-flag-pack --save

Usage

// use own name as variable
import Flag from 'vue-flag-pack'

Use in JSX:

<Flag
  code="NL"
  gradient="real-linear"
  size="m"
  dropshadow
/>

Available component configurations

keyvaluerequireddefaultformat
country codeStringtrue-see all codes
sizeStringfalsel's', 'm' or 'l'
classNameStringfalse--
dropshadowbooleanfalsefalse-
hasBorderbooleanfalsetrue-
hasBorderRadiusbooleanfalsetrue-
customBorderRadiusStringfalse--
gradientStringfalse'''top-down', 'real-linear' or 'real-circular'

Build Dist

# install dependencies
npm install

# build for prod
npm run build