shadcn-vue icon indicating copy to clipboard operation
shadcn-vue copied to clipboard

feat: `vue-input-otp`

Open sadeghbarati opened this issue 1 year ago • 7 comments
trafficstars

sadeghbarati avatar Mar 07 '24 21:03 sadeghbarati

Deploying with Cloudflare Pages

Name Result
Last commit: 4d78e5d9
Status: ⚡️ Deployment in progress...
Preview URL: https://9f98d524.shadcn-vue.pages.dev
Branch Preview URL: https://9f98d524.shadcn-vue.pages.dev

github-actions[bot] avatar Mar 07 '24 21:03 github-actions[bot]

Why vue-input-otp, does the one from radix-vue not fitting? 🤔

it's basically the same as PinInput

Futhermore, adding more external packages always worries me with the integration with styling and js transformation.

zernonia avatar Mar 08 '24 02:03 zernonia

noticed a bug yaa.. seems like clicking on other input doesn't focus on them.. need to click multiple time then only able to focus other.

https://github.com/radix-vue/shadcn-vue/assets/59365435/07615058-37c3-4296-b9de-78ec1371080d

zernonia avatar Mar 08 '24 06:03 zernonia

https://github.com/wobsoriano/vue-input-otp/issues/9

sadeghbarati avatar Mar 08 '24 15:03 sadeghbarati

Hey, I'm excited for this! Just a heads up - I saw a branch in the original repo and I think he's about to add in support for Svelte and Vue so I think the vue-input-otp package will likely be deprecated in favor of that soon.

https://github.com/guilhermerodz/input-otp/tree/feat/multi-frameworks/lib

cc @guilhermerodz

wobsoriano avatar Mar 08 '24 17:03 wobsoriano

hey @wobsoriano a vuejs + svelte version is on input-otp roadmap.

I'll wait for the react lib to become stable (no significant issues opened in ~10-15 days) and then finally start working in the vanilla JS core so that we can export to another libraries such as vuejs and svelte. how does that sound?

guilhermerodz avatar Mar 11 '24 19:03 guilhermerodz

@guilhermerodz that sounds like a plan! For the meantime, I'll keep the vue-input-otp package in sync with the React version until your Svelte and Vue versions are released :) Once they're ready, I'll gladly include a link to your repository.

wobsoriano avatar Mar 15 '24 21:03 wobsoriano