Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ieedan/shadcn-phone-input-svelte

A Svelte port of shadcn-phone-input.
https://github.com/ieedan/shadcn-phone-input-svelte

phone-number shadcn-svelte

Last synced: 8 days ago
JSON representation

A Svelte port of shadcn-phone-input.

Awesome Lists containing this project

README

        

![image](https://github.com/user-attachments/assets/aa551a41-2255-4536-a387-18e5378ef1f4)

# shadcn-phone-input-svelte

A Svelte port of [shadcn-phone-input](https://github.com/omeralpi/shadcn-phone-input).

## Setup

### Install shadcn-svelte via CLI

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

```bash
npx shadcn-svelte@next init
```

### Install necessary components

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

```bash
npx shadcn-svelte@next add button
npx shadcn-svelte@next add command
npx shadcn-svelte@next add popover
npx shadcn-svelte@next add scroll-area
```

### Install Svelte Tel Input

```bash
npm install svelte-tel-input
```

### Copy the code

You can find the most recent code [here](https://github.com/ieedan/shadcn-phone-input-svelte/tree/main/src/lib/components/ui/phone-input).

## Credits

Huge thanks to the creators of [svelte-tel-input](https://github.com/gyurielf/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:

```bash
npx changy add
# or
npm run changelog:new
```