All Projects → CharlyJazz → svelte-credit-card

CharlyJazz / svelte-credit-card

Licence: MIT License
A svelte component to render a credit card 💳

Programming Languages

Svelte
593 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to svelte-credit-card

Eleventy Starter
ARCHIVED: An Eleventy starting point with Tailwind and Svelte preconfigured.
Stars: ✭ 118 (+293.33%)
Mutual labels:  rollup, svelte
Bili
Bili makes it easier to bundle JavaScript libraries.
Stars: ✭ 949 (+3063.33%)
Mutual labels:  package, rollup
Modular Css
A streamlined reinterpretation of CSS Modules via CLI, API, Browserify, Rollup, Webpack, or PostCSS
Stars: ✭ 234 (+680%)
Mutual labels:  rollup, svelte
Sapper Template Firebase
Starter Rollup template for Sapper apps with Firebase functions based on https://github.com/nhristov/sapper-template-rollup.
Stars: ✭ 29 (-3.33%)
Mutual labels:  rollup, svelte
form-validation
FormValidation, the best validation library for JavaScript
Stars: ✭ 137 (+356.67%)
Mutual labels:  rollup, svelte
Svelte Example
🚀 📚 Some examples to test the Svelte Framework
Stars: ✭ 85 (+183.33%)
Mutual labels:  rollup, svelte
Westwind.htmlpackager
A small utility class used to package HTML content into a self contained HTML document both as a single file, or a folder with all dependencies copied to local.
Stars: ✭ 27 (-10%)
Mutual labels:  package, mit
rollup-plugin-svelte-hot
Fork of official rollup-plugin-svelte with added HMR support (for both Nollup or Rollup)
Stars: ✭ 49 (+63.33%)
Mutual labels:  rollup, svelte
simple-cloud-music
简洁的的第三方网易云音乐播放器
Stars: ✭ 306 (+920%)
Mutual labels:  rollup, svelte
svelte-template-hot
Copy of official Svelte template with added HMR support
Stars: ✭ 61 (+103.33%)
Mutual labels:  rollup, svelte
Svelte Tailwind Extension Boilerplate
A Chrome extension boilerplate built with Svelte, TailwindCSS, Jest, and Rollup.
Stars: ✭ 26 (-13.33%)
Mutual labels:  rollup, svelte
sapper-typescript-esbuild-template
Sapper template with ESBuild and TypeScript
Stars: ✭ 18 (-40%)
Mutual labels:  rollup, svelte
Vudash
Powerful, Flexible, Open Source dashboards for anything
Stars: ✭ 363 (+1110%)
Mutual labels:  rollup, svelte
svelte-typescript-rollup
Svelte + Typescript + Rollup
Stars: ✭ 79 (+163.33%)
Mutual labels:  rollup, svelte
sapper-template-rollup
Starter Rollup template for Sapper apps using postcss, cssnano, tailwindcss, and svelte-preprocess.
Stars: ✭ 32 (+6.67%)
Mutual labels:  rollup, svelte
Sapper Ecommerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, 1 command deploy to production, Open Source, MIT license. Join us as contributor ([email protected])
Stars: ✭ 289 (+863.33%)
Mutual labels:  ecommerce, svelte
ctx-core
A composable monorepo web-service/front-end toolkit
Stars: ✭ 25 (-16.67%)
Mutual labels:  rollup, svelte
svelte-commerce
Svelte ecommerce - Headless, Authentication, Cart & Checkout, TailwindCSS, Server Rendered, Proxy + API Integrated, Animations, Stores, Lazy Loading, Loading Indicators, Carousel, Instant Search, Faceted Filters, Typescript, Open Source, MIT license. 1 command deploy to your own server, 1 click deploy to netlify.
Stars: ✭ 695 (+2216.67%)
Mutual labels:  ecommerce, svelte
markushatvan.com
Personal website and blog written from scratch with SvelteKit and TailwindCSS.
Stars: ✭ 82 (+173.33%)
Mutual labels:  rollup, svelte
svelte-google-analytics
Google Analytics component for Svelte
Stars: ✭ 41 (+36.67%)
Mutual labels:  svelte

Svelte Credit Card

npm version Codecov semantic-release

A component to render a credit card preview, useful for ecommerces.

Based in react-credit-cards A react component with beautiful credit cards for your payment forms.

Prerequisites

You need svelte-loader or a rollup svelte configuration

Installing

With NPM:

$ npm install svelte-credit-cards

With Yarn:

$ yarn add svelte-credit-cards

Example

You can create inputs and send the values as props to the CreditCard component

<script>
  import CreditCard from "svelte-credit-cards"; let number = ""; let name = "";
  let cvc = ""; let expiry = "";
</script>
<div>
  <label for="number">Number</label>
  <input bind:value="{number}" name="number" id="number" />
</div>
<div>
  <label for="name">Name</label>
  <input bind:value="{name}" name="name" id="name" />
</div>
<div>
  <label for="cvc">CVC</label>
  <input bind:value="{cvc}" name="cvc" id="cvc" maxlength="3" />
</div>
<div>
  <label for="expiry">Exp.</label>
  <input bind:value="{expiry}" name="expiry" id="expiry" maxlength="4" />
</div>
<CreditCard {number} {name} {cvc} {expiry} preview="{true}" />

Built With

react-credit-cards - A react component with beautiful credit cards for your payment forms.

Svelte Component Template - A base for building shareable Svelte components.

Payment - A jQuery-free general purpose library for building credit card forms, validating inputs and formatting numbers.

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

License

This project is licensed under the MIT License - see the LICENSE file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].