Getting Started
Prerequisites
- A Kotlin Multiplatform or Android project with the Compose Multiplatform plugin applied
- Material 3 dependency (
compose.material3)
Add Repository
Ensure mavenCentral() is in your repositories block (this is the default for most projects):
Add Dependency
Multiplatform Projects
Add the dependency to your commonMain source set dependencies:
Android Projects
If you are working on an Android-only project, add the dependency directly to your app's build.gradle.kts:
Platform Notes
| Platform | Status |
|---|---|
| Android | Works out of the box |
| iOS | Requires Compose Multiplatform iOS support enabled in your project |
| Desktop (JVM) | Works out of the box with JVM target |
| Web (JS) | Works with js(IR) browser target |
| Web (WasmJS) | Works with wasmJs browser target |
For platform-specific details (validation engines, default country detection, running sample apps), see the Platforms page.
Next Steps
Head over to the Usage page to learn how to use the country code picker in your app.