@sudarshanaui/fancy-button 1.4.5 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fancybutton.css +3 -3
- package/fancybutton.jsx +2 -2
- package/package.json +1 -1
package/fancybutton.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.btn-anim {
|
|
1
|
+
.sd-btn-anim {
|
|
2
2
|
padding: 12px 24px;
|
|
3
3
|
background: linear-gradient(25deg, #EF8B4A 50%, #FF6E64 40%);
|
|
4
4
|
color: white;
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
box-shadow: 0 3px 5px 2px rgba(255, 105, 135, .3);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.btn-anim:hover {
|
|
13
|
+
.sd-btn-anim:hover {
|
|
14
14
|
transform: scale(1.05);
|
|
15
15
|
box-shadow: 0 3px 15px 2px rgba(255, 105, 135, .5);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.btn-anim:active {
|
|
18
|
+
.sd-btn-anim:active {
|
|
19
19
|
transform: scale(0.95);
|
|
20
20
|
}
|
|
21
21
|
|
package/fancybutton.jsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './fancybutton.css';
|
|
3
3
|
|
|
4
|
-
export const fancybutton = ({ label = "
|
|
4
|
+
export const fancybutton = ({ label = "fancy" }) => {
|
|
5
5
|
return (
|
|
6
6
|
<>
|
|
7
|
-
<button className="btn-anim">{label}</button>
|
|
7
|
+
<button className="sd-btn-anim">{label}</button>
|
|
8
8
|
</>
|
|
9
9
|
);
|
|
10
10
|
};
|