mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-08-24 07:12:18 +10:00
refactor: ponytail audit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { ReactNode } from "react";
|
||||
import { m } from "motion/react";
|
||||
|
||||
type ActionButtonProps = {
|
||||
children: ReactNode;
|
||||
};
|
||||
|
||||
export function ActionButton({ children }: ActionButtonProps) {
|
||||
return (
|
||||
<m.div
|
||||
className="will-change-transform"
|
||||
whileHover={{ y: -1, scale: 1.01 }}
|
||||
whileTap={{ scale: 0.99 }}
|
||||
transition={{ duration: 0.14, ease: "easeOut" }}
|
||||
>
|
||||
{children}
|
||||
</m.div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user