ieedan / shadcn-phone-input-svelte

A Svelte port of shadcn-phone-input.
https://shadcn-phone-input-svelte.vercel.app/
MIT License
7 stars 0 forks source link
phone-number shadcn-svelte

image

shadcn-phone-input-svelte

A Svelte port of shadcn-phone-input.

Setup

Install shadcn-svelte via CLI

Run the shadcn-svelte init command to setup your project:

npx shadcn-svelte@latest init

Install necessary components

Run the shadcn-svelte add command to add the necessary components to your project:

npx shadcn-svelte@latest add button
npx shadcn-svelte@latest add command
npx shadcn-svelte@latest add popover
npx shadcn-svelte@latest add scroll-area

Install Svelte Tel Input

npm install svelte-tel-input

Copy the code

You can find the most recent code here.

Credits

Huge thanks to the creators of svelte-tel-input for making this possible.

Contributing

Contributions as always are welcomed.

Changelog

When contributing you'll want to add any changes you make to the changelog you can do this by running:

npx changy add
# or
npm run changelog:new