Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controlling size #10

Open
rchanou opened this issue Mar 10, 2016 · 3 comments
Open

Controlling size #10

rchanou opened this issue Mar 10, 2016 · 3 comments

Comments

@rchanou
Copy link

rchanou commented Mar 10, 2016

Any API or suggestions for setting the size of the credit card? In my case I'd like it to be able to shrink to fit inside a certain div.

@JohnyDays
Copy link
Owner

This would be cool, but with how it's implemented right now all the sizes and positions are pretty much set in stone, if you wanna work on it, i'm sure it'd be useful to people 👍

@barrysteyn
Copy link

@JohnyDays I also need this functionality, can you give some quick hints regarding how one would tackle this?

@JohnyDays
Copy link
Owner

Sure! I'd probably start by turning any sizing related css in
https://github.com/JohnyDays/react-credit-card/blob/master/source/card.css
to inline styles in javascript, then derive all of them from a single width input prop using some formulae

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@barrysteyn @rchanou @JohnyDays and others