1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

fixed tag button on node related

This commit is contained in:
Fedor Katurov 2022-01-21 17:46:50 +07:00
parent c33e417cbb
commit bb785ea459
3 changed files with 35 additions and 6 deletions

View file

@ -0,0 +1,17 @@
import React, { FC } from 'react';
import classNames from 'classnames';
import { ButtonProps } from '~/utils/types';
import styles from './styles.module.scss';
interface PressableProps extends ButtonProps {}
const Pressable: FC<PressableProps> = ({ children, ...rest }) => (
<button {...rest} className={classNames(styles.pressable, rest.className)}>
{children}
</button>
);
export { Pressable };

View file

@ -0,0 +1,10 @@
.pressable {
color: inherit;
border: none;
font: inherit;
padding: 0;
margin: 0;
text-transform: inherit;
cursor: pointer;
display: inline-flex;
}