mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:19:45 +00:00
перенес структуру Севы со своими правками
This commit is contained in:
1 parent
3a1cac0dfe
commit
808d97eb4b
331 files changed
+12260
-19950
No files matched your search
@@ -0,0 +1,21 @@
|
||||
button {
|
||||
padding: 0.5rem 1rem;
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
background-color: #07a8e3;
|
||||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
|
||||
color: rgba(0, 0, 0, 0.7);
|
||||
font-family: Kumbh Sans;
|
||||
font-size: 16px;
|
||||
font-weight: 300;
|
||||
line-height: 140%;
|
||||
letter-spacing: 1%;
|
||||
text-align: center;
|
||||
|
||||
color: #fff;
|
||||
&:hover {
|
||||
background-color: #07a8e3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import styles from "./Button.module.scss";
|
||||
|
||||
interface ButtonProps {
|
||||
label: string;
|
||||
className?: string;
|
||||
onClick?: () => void; // Добавляем onClick как необязательный пропс
|
||||
}
|
||||
|
||||
export const Button = ({ label, className, onClick }: ButtonProps) => {
|
||||
return (
|
||||
<button
|
||||
className={className + ' ' + styles.button}
|
||||
onClick={onClick} // Используем onClick для кнопки
|
||||
>
|
||||
{label}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user