mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed tag button on node related
This commit is contained in:
parent
c33e417cbb
commit
bb785ea459
3 changed files with 35 additions and 6 deletions
17
src/components/common/Pressable/index.tsx
Normal file
17
src/components/common/Pressable/index.tsx
Normal 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 };
|
10
src/components/common/Pressable/styles.module.scss
Normal file
10
src/components/common/Pressable/styles.module.scss
Normal file
|
@ -0,0 +1,10 @@
|
|||
.pressable {
|
||||
color: inherit;
|
||||
border: none;
|
||||
font: inherit;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
text-transform: inherit;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue