New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

react-flag-pack

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-flag-pack

A React flag pack

latest
Source
npmnpm
Version
0.0.15
Version published
Maintainers
1
Created
Source

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

Keywords

react

FAQs

Package last updated on 17 Jul 2019

Related posts