-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.styles.ts
More file actions
29 lines (28 loc) · 973 Bytes
/
Button.styles.ts
File metadata and controls
29 lines (28 loc) · 973 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
28
29
import styled from "styled-components";
import { ButtonProps } from "./Button";
export const StyledButton = styled.button<ButtonProps>`
line-height: 1;
cursor: pointer;
font-weight: 700;
font-size: ${(props) =>
props.size === "small"
? "16px"
: props.size === "medium"
? "16px"
: "20px"};
border-radius: 10px;
display: inline-block;
color: ${(props) => (props.primary ? "#fff" : "#000")};
${(props) =>
props.primary && `background: ${props.bg ? props.bg : "#FF5655"}`};
${(props) => props.outline && `background: transparent`};
border: ${(props) => (props.outline ? "2px solid" : "none")};
${(props) =>
props.outline && `border-color: ${props.bg ? props.bg : "#000"}`};
padding: ${(props) =>
props.size === "small"
? "10px 18px"
: props.size === "medium"
? "14px 20px"
: "14px 24px"};
`;