Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rahul2104/react-country-flag-currency-picker


https://github.com/rahul2104/react-country-flag-currency-picker

Last synced: 1 day ago
JSON representation

Awesome Lists containing this project

README

        

# react-country-flag-currency-picker

A customizable svg flags,currency select components for React Js.

## Installation
The package can be installed via NPM:
```
npm install react-country-flag-currency-picker --save
```

## Usage

```javascript

```

### Default Country

You can select a default country to be rendered.

```javascript

```

### Searchable

You can enable search filter using prop `searchable`.

```javascript

```

### Search Placeholder

You can set the placeholder text for search using prop `searchPlaceholder`.

```javascript

```

### onSelect

You can use onSelect event handler which fires each time an option is selected.
`onSelect(countryCode)`.

```javascript
//onSelect Method
onSelectFlag(country){
console.log(country)
}

//component render

```