百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

ember-credit-card

> 开发工具
开源

"在一行代码中让您的信用卡表单变得梦幻般"

100 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

"在一行代码中让您的信用卡表单变得梦幻般"

Ember Credit card

This is an Ember wrapper for the amazing Card project.

Installation

ember install ember-credit-card

Usage

handlebars
Default

By simply adding {{credit-card}} a basic form will be generated:

handlebars

  {{input type="text" name="number" value=number placeholder='Credit Card Number'}}
  {{input type="text" name="name" value=name placeholder='Name on Credit Card'}}
  {{input type="text" name="expiry" value=expiry}}
  {{input type="text" name="cvc" value=cvc}}
Specifying settings

You can also specify all the settings that Card supports.

handlebars
With template

The default form and inputs used by default are so simple, so you can pass a template to use your own styled inputs.

Remeber to either use the default name inputs or specify them on the {{credit-card}} arguments

handlebars

  
    

    

    

    

  

Linting

  • yarn lint:js
  • yarn lint:js --fix

Running Tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • ember try:each – Runs the test suite against multiple Ember versions

Running the dummy application

  • ember serve
  • Visit the dummy application at http://localhost:4200.

License

This project is licensed under the MIT License.

Support on Beerpay

Hey people! Help me out for a couple of :beers:!

Issues· 21 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptcredit-cardemberember-addonember-cli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具