@mkishor/mk-country-kit-ui
v1.0.1
Published
Premium Shadcn/UI (Tailwind CSS + Radix UI) components for react-country-kit.
Downloads
285
Maintainers
Readme
@mkishor/mk-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 @mkishor/mk-country-kit-react ecosystem.
🚀 Installation
npm install @mkishor/mk-country-kit-ui @mkishor/mk-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 '@mkishor/mk-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 '@mkishor/mk-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 '@mkishor/mk-country-kit-ui';📄 License
MIT
