0.0.8 • Published 1 year ago

react_countries_picker v0.0.8

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Country Selector Library

A reusable React component for selecting countries, complete with country flags and dial codes.

Features

  • Select countries with flags
  • Displays dial codes
  • Easy integration into any React project

Installation

Install the package via npm:

npm install react_countries_picker

Usage/Examples

import React from "react";
import CountryPicker from "react_countries_picker";

const App = () => {
  const handleCountryChange = (country) => {
    console.log(country);
  };

  return (
    <div>
      <h1>Select Country Code</h1>
      <CountryPicker onChange={handleCountryChange} />
    </div>
  );
};

export default App;

Screenshots

Parameter Reference

ParameterTypeDescription
onCountryChangefunctionRequired. function to be called when a country is picked
styleobjectoptional. An object containing custom styles

Used By

This project is used by the following companies:

  • kibuti software
  • Ennovate ventures

Support

For support, email headricleonard@gmail.com

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago