new component

This commit is contained in:
Laux Dev
2026-03-03 14:07:22 +08:00
parent f0b3c443c0
commit 62c438eed0
9 changed files with 47 additions and 107 deletions

View File

@@ -0,0 +1,8 @@
import React from "react";
import styles from "./styles.module.css";
const ActionButton = ({ icon }) => {
return <button className={styles.iconButton}>{icon}</button>;
};
export default ActionButton;

View File

@@ -0,0 +1,21 @@
.iconButton {
display: flex;
padding: 6px;
flex-direction: column;
justify-content: center;
align-items: center;
flex-shrink: 0;
aspect-ratio: 1/1;
background-color: rgba(255, 255, 255, 0);
outline: none;
border: 1px solid #959aff00;
cursor: pointer;
border-radius: 50%;
}
.iconButton:hover {
border: 1px solid #959aff;
background: linear-gradient(180deg, #696b95 0%, #20202d 100%);
}
.iconButton:hover path {
stroke: white;
}