- Notifications
You must be signed in to change notification settings - Fork0
Svelte Payment Inputs is a collection of unstyled payment input components for Svelte.
License
MostlyWhat/svelte-payment-inputs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Svelte Payment Inputs is a collection of unstyled payment input components for Svelte.
This is a port ofReact Payment Inputs for React, which was created byMedipass.
To start using the library, install it in your project:
npm install svelte-payment-inputs
Use the drawer in your app.
<script>import {Package }from"svelte-payment-inputs";</script><Packagename="Visa"number="4111 1111 1111 1111"expiry="12/23"cvc="123"on:change={(event)=> {console.log(event.detail); }}</Package>
The documentation is hosted onGitHub Pages.
Play around with the examples on StackBlitz:
TBD
Once you've created a project and installed dependencies withnpm install (orpnpm install oryarn), start a development server:
npm run dev# or start the server and open the app in a new browser tabnpm run dev -- --openEverything insidesrc/lib is part of the library, everything insidesrc/routes is the documentation.
To build the library:
npm run package
To create a production version of the documentation:
npm run build
You can preview the production build withnpm run preview.
To deploy the app, you may need to install anadapter for your target environment.
To publish the library tonpm:
npm publish
To run the tests, use the following command:
npm runtestThe roadmap for the project is available in theROADMAP.md file.
TBD
The svelte-payment-inputs is licensed under theMIT License.
Contributions are welcome! Please read thecontributing guidelines for more information.
About
Svelte Payment Inputs is a collection of unstyled payment input components for Svelte.
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.