A Vue.js (2.x) component that wraps cleave.js, a library for formatting input text (credit cards, phone numbers, dates, custom patterns). Current version 1.2.2 is stable, with no active development since 2020. Requires Vue >=2; does not support Vue 3. Key differentiators: simple declarative API for cleave.js integration in Vue projects, but limited to Vue 2 and unmaintained.
npm install vue-cleaveNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage of Cleave component with credit card formatting and v-model binding.
Consider migrating to vue-cleave-next or other Vue 3-compatible input formatting libraries.
Use vue-cleave-next if using Vue 3, or downgrade to Vue 2.
Access the formatted value via event handling or use cleave.js raw API if needed.
Run 'npm install vue-cleave --save' or ensure it's in package.json.
Use 'import Cleave from 'vue-cleave'' (default import).
Add 'components: { Cleave }' in the parent component.