react-country-kit-ui
v1.3.0
Published
Premium Shadcn/UI (Tailwind CSS + Radix UI) components for react-country-kit.
Downloads
64
Readme
react-country-kit-ui
Premium, accessible, and highly customizable React components for countries, currencies, timezones, and more. Built on top of Radix UI and styled with Tailwind CSS.
Part of the react-country-kit ecosystem.
🚀 Installation
npm install react-country-kit-ui react-country-kit-corePeer Dependencies
Ensure you have the following installed in your project:
npm install lucide-react clsx tailwind-merge class-variance-authority @radix-ui/react-popover🎨 Components
CountryPicker
A searchable country selection component with flag support.
import { CountryPicker } from 'react-country-kit-ui';
function App() {
return (
<CountryPicker
label="Country"
placeholder="Select a country..."
showFlag={true}
showPhoneCode={true}
onChange={(country) => console.log(country)}
/>
);
}PhoneInput
International phone number input with automatic formatting and country detection.
import { PhoneInput } from 'react-country-kit-ui';
function App() {
return (
<PhoneInput
label="Phone Number"
defaultCountryIso2="US"
onChange={(value) => console.log(value)}
/>
);
}Other Components
CurrencyPicker: Select currencies with localized symbols.TimezonePicker: Search and select timezones by IANA name or offset.LanguagePicker: Support for 180+ languages with native names.DivisionPicker: State/Province picker filtered by country.CountryMultiSelect: Select multiple countries with chips/badges.
🛠 Primitives
You can also use the underlying primitives to build your own custom pickers:
import {
Popover,
PopoverContent,
PopoverTrigger,
CommandRoot,
CommandInput,
CommandList,
CommandItem,
Flag
} from 'react-country-kit-ui';📄 License
MIT
