Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Svelte Payment Inputs is a collection of unstyled payment input components for Svelte.

License

NotificationsYou must be signed in to change notification settings

MostlyWhat/svelte-payment-inputs

Repository files navigation

npm versionnpm downloadslicense

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.

Usage

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>

Documentation

The documentation is hosted onGitHub Pages.

Examples

Play around with the examples on StackBlitz:

API Reference

TBD

Developing

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 -- --open

Everything insidesrc/lib is part of the library, everything insidesrc/routes is the documentation.

Building

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.

Publishing

To publish the library tonpm:

npm publish

Testing

To run the tests, use the following command:

npm runtest

Roadmap

The roadmap for the project is available in theROADMAP.md file.

Acknowledgements

TBD

License

The svelte-payment-inputs is licensed under theMIT License.

Contributing

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp