npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@worldkit/react

v1.0.3

Published

Accessible React dropdown components for global data selection

Downloads

521

Readme

⚛️ @worldkit/react

Pre-built React select components and interactive documentation layout for WorldKit.

npm version License: MIT TypeScript

Zero-config, accessible React dropdown components for countries, states, cities, timezones, and currencies.

📚 Full Documentation: https://worldkit.in/docs/react


⚡ Features

  • 🌍 <CountrySelect />: Country dropdown selector with optional flag emojis.
  • 🏛️ <StateSelect />: State/province dropdown dynamically filtered by country ISO2.
  • 🏙️ <CitySelect />: World cities selector filtered by country ISO2.
  • <TimezoneSelect />: IANA timezone picker with UTC offsets.
  • 💰 <CurrencySelect />: ISO-4217 currency selector with symbols.
  • 📑 <DocumentationTabs />: Embedded interactive documentation tab layout with live V8 edge simulator.

📦 Install

npm install @worldkit/react @worldkit/core
# or
pnpm add @worldkit/react @worldkit/core
# or
yarn add @worldkit/react @worldkit/core

💡 Usage

Cascading Country, State, and City Selectors

import React, { useState } from "react";
import {
  CountrySelect,
  StateSelect,
  CitySelect,
  CurrencySelect,
  TimezoneSelect
} from "@worldkit/react";

export function AddressForm() {
  const [country, setCountry] = useState("US");
  const [state, setState] = useState("CA");
  const [city, setCity] = useState("San Francisco");

  return (
    <form className="form-container">
      {/* 1. Country Select */}
      <CountrySelect
        value={country}
        onChange={(e) => setCountry(e.target.value)}
        showFlag={true}
      />

      {/* 2. State Select (filtered by country) */}
      <StateSelect
        countryIso2={country}
        value={state}
        onChange={(e) => setState(e.target.value)}
      />

      {/* 3. City Select (filtered by country) */}
      <CitySelect
        countryIso2={country}
        value={city}
        onChange={(e) => setCity(e.target.value)}
      />

      {/* 4. Currency Select */}
      <CurrencySelect placeholder="Select preferred currency..." />

      {/* 5. Timezone Select */}
      <TimezoneSelect placeholder="Select timezone..." />
    </form>
  );
}

Interactive Documentation Tab Component

import React from "react";
import { DocumentationTabs } from "@worldkit/react";

export function DocsPage() {
  return (
    <div className="max-w-6xl mx-auto p-6">
      <DocumentationTabs defaultTab="cloudflare" theme="dark" />
    </div>
  );
}

📖 API Reference

| Component | Props | Description | | :--- | :--- | :--- | | <CountrySelect /> | showFlag?: boolean, Standard <select> props | Country selector dropdown | | <StateSelect /> | countryIso2?: string, Standard <select> props | State/Province dropdown | | <CitySelect /> | countryIso2?: string, Standard <select> props | World city dropdown | | <TimezoneSelect /> | Standard <select> props | IANA timezone dropdown | | <CurrencySelect /> | Standard <select> props | ISO currency dropdown | | <DocumentationTabs /> | defaultTab?: string, theme?: "dark" \| "light" | Documentation tab layout |


📐 TypeScript Support

Written in 100% strict TypeScript. Exported component prop interfaces:

import type {
  CountrySelectProps,
  StateSelectProps,
  CitySelectProps,
  BaseSelectProps
} from "@worldkit/react";

🔗 Related Packages

Explore the rest of the WorldKit ecosystem:


📜 License

MIT © WorldKit