Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rahul2104/react-country-flag-currency-picker
- Owner: rahul2104
- License: mit
- Created: 2020-08-25T16:40:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T11:14:09.000Z (about 1 year ago)
- Last Synced: 2024-10-11T20:48:55.239Z (about 1 month ago)
- Language: JavaScript
- Size: 2.9 MB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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
```