/
helloWrld
/
test
Обзор
Документация
Войти
/
helloWrld
/
test
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/shared/components/Button/Button.tsx
14 строк
419 B
babinm1h
rq
29 дек 2023, 08:48
29 дек 2023, 08:48
e4a5c4f
Код
Авторство
О чём код?
import React, { PropsWithChildren } from 'react'; import classNames from 'classnames'; import s from './Button.module.scss'; interface IButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {} export const Button = ({ children, className, ...props }: PropsWithChildren<IButtonProps>) => { return ( <button {...props} className={classNames(s.btn, className)}> {children} </button> ); };