-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathButton.js
More file actions
53 lines (46 loc) · 1.11 KB
/
Button.js
File metadata and controls
53 lines (46 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import React from 'react';
import { Button } from '@mui/material';
import { styled } from '@mui/material/styles';
export const GreenButton = (props) => {
const Green = styled(Button)({
backgroundColor: '#147d16',
borderRadius: '.3vw',
color: 'white',
height: '32px',
});
return (
<Green type={props.type} sx={props?.sx} onClick={props.onClick}>
{props.children}
</Green>
);
};
export const WhiteButton = (props) => {
const White = styled(Button)({
backgroundColor: 'white',
outline: '1px #147d16 solid',
borderRadius: '.3vw',
color: '#00000050',
height: '32px',
fontSize: '12px',
});
return (
<White type={props.type} onClick={props.onClick} sx={props?.sx}>
{props.children}
</White>
);
};
export const GrayButton = (props) => {
const Gray = styled(Button)({
backgroundColor: 'white',
borderRadius: '.3vw',
outline: '1px solid #00000050',
color: '#00000050',
height: '32px',
fontSize: '12px',
});
return (
<Gray type={props.type} onClick={props.onClick} sx={props?.sx}>
{props.children}
</Gray>
);
};