react-ios-corners
react-ios-corners copied to clipboard
How to integrate with css modules?
Wrapping an element with <Squircle /> in the component.js file does not play nice with css imported from the component.module.css file.
Any suggestions besides switching to styled components?
Great work.
Can you show some example use-case code-snippet?
https://codesandbox.io/s/wandering-brook-f78j6?file=/src/App.js
Thats interesting case, so you can add
width: 100%;
border: none;
to your button styles.
By default Squircle has 100% width while button by default is inlined which means it does not stretch horizontally.
Adding those it seems to look ok:
Could we implement an option to change the default width?