Skip to content

feat: refactor to expose composables #56

@laventnc

Description

@laventnc

What problem is this solving

As a Vuetify user I'm a huge fan of this library. However, after using libraries like vue-currency-input I think this compositional approach is better for designing libraries as you don't need to tie the implementation to a specific UI library.

Proposed solution

Break out the mask/formatting/parsing logic and expose the functionality via a composable like usePhoneInput(), similar to the aforementioned vue-currency-input library.

Describe alternatives you've considered

Perhaps this would become a different library, just wanted to throw this idea out incase you hadn't thought of it.
Huge fan of the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions