react-country-dropdown
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-country-dropdown", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple dropdown menu for selecting countries", | ||
"author": "RocktimSaikia", | ||
"license": "MIT", | ||
"keywords": [ | ||
"country", | ||
"select", | ||
"dropdown", | ||
"react-dropdown" | ||
], | ||
"repository": "https://github.com/RocktimSaikia/react-country-dropdown", | ||
@@ -8,0 +14,0 @@ "main": "dist/index.js", |
# react-country-dropdown | ||
> A simple dropdown menu for selecting countries :rocket: | ||
> | ||
> ![David](https://img.shields.io/david/rocktimsaikia/react-country-dropdown?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/rocktimsaikia/react-country-dropdown?style=for-the-badge) ![npm bundle size](https://img.shields.io/bundlephobia/min/react-country-dropdown?style=for-the-badge) ![GitHub package.json version](https://img.shields.io/github/package-json/v/rocktimsaikia/react-country-dropdown?style=for-the-badge) | ||
![David](https://img.shields.io/david/rocktimsaikia/react-country-dropdown?style=for-the-badge) ![GitHub](https://img.shields.io/github/license/rocktimsaikia/react-country-dropdown?style=for-the-badge) ![npm bundle size](https://img.shields.io/bundlephobia/min/react-country-dropdown?style=for-the-badge) ![GitHub package.json version](https://img.shields.io/github/package-json/v/rocktimsaikia/react-country-dropdown?style=for-the-badge) | ||
<div style="width:220px;margin:auto"> | ||
@@ -24,3 +24,3 @@ <img src="https://i.ibb.co/Dz2WxrN/react-country.png" style="height:100%;width:100%"/> | ||
import CountryDropdown from 'react-country-dropdown' | ||
import {ReactCountryDropdown} from 'react-country-dropdown' | ||
import 'react-country-dropdown/dist/index.css' | ||
@@ -31,3 +31,3 @@ | ||
<div> | ||
<CountryDropdown countryCode='IN' /> | ||
<ReactCountryDropdown countryCode='IN' /> | ||
<div> | ||
@@ -43,3 +43,3 @@ ) | ||
import CountryDropdown from 'react-country-dropdown' | ||
import { ReactCountryDropdown } from 'react-country-dropdown' | ||
import 'react-country-dropdown/dist/index.css' | ||
@@ -62,3 +62,3 @@ | ||
<div> | ||
<CountryDropdown onSelect={handleSelect} countryCode='IN' /> | ||
<ReactCountryDropdown onSelect={handleSelect} countryCode='IN' /> | ||
</div> | ||
@@ -65,0 +65,0 @@ ) |
45616