sync
Some checks are pending
CI/CD Pipeline / docker (push) Waiting to run
CI/CD Pipeline / deploy (push) Blocked by required conditions

This commit is contained in:
2026-03-18 09:22:03 +03:00
parent 9eeba2c37d
commit d1af4619f7
10 changed files with 519 additions and 46 deletions

View File

@@ -24,7 +24,7 @@ title: Типизация
/**
* Параметры кнопки.
*/
interface IOwnProps extends HTMLAttributes<HTMLDivElement> {
interface ButtonProps extends HTMLAttributes<HTMLDivElement> {
/** Текст кнопки. */
label: string;
/** Обработчик клика по кнопке. */
@@ -34,7 +34,7 @@ interface IOwnProps extends HTMLAttributes<HTMLDivElement> {
/**
* Кнопка с пользовательскими стилями.
*/
export const Button:FC<IOwnProps> = ({ className, label, onClick, ...htmlAttr }) => {
export const Button: FC<ButtonProps> = ({ className, label, onClick, ...htmlAttr }) => {
return (
<div {...htmlAttr} className={cl(styles.root, className)}>
button