city-state-dropdown

1.0.4 • Public • Published

city-state-dropdown

A React component for state and city dropdowns for India.

Installation

npm install city-state-dropdown
or
npm i city-state-dropdown

Usage

import React from "react";
import StateCityDropdown from "state-city-dropdown";

// App.jsx
function App() {
  return (
    <>
      <StateCityDropdown
        containerClassName="flex flex-col items-center"
        stateClassName="mt-2 p-2 border border-gray-300 rounded"
        cityClassName="mt-2 p-2 border border-gray-300 rounded"
      />
    </>
  );
}

export default App;

/city-state-dropdown/

    Package Sidebar

    Install

    npm i city-state-dropdown

    Weekly Downloads

    2

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    245 kB

    Total Files

    15

    Last publish

    Collaborators

    • aditya_krm