-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathButton.styled.js
More file actions
27 lines (23 loc) · 889 Bytes
/
Button.styled.js
File metadata and controls
27 lines (23 loc) · 889 Bytes
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
import styled from 'styled-components';
const DefaultStyledButton = styled.div`
display: inline-block;
font-weight: 400;
color: #212529;
text-align: center;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: transparent;
border: 1px solid transparent;
padding: 0.375rem 0.75rem;
font-size: 1rem;
line-height: 1.5;
border-radius: 0.25rem;
transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
`;
const VariantStyledButton = styled(DefaultStyledButton)(({variant, theme}) => theme.button.variant[variant])
const SizeStyledButton = styled(VariantStyledButton)(({size, theme}) => theme.button.size[size])
export const StyledButton = SizeStyledButton;