이승윤

Merge branch 'style/components-setup-button' into 'develop'

feat: Button 컴포넌트 설정 요소 추가



See merge request !3
......@@ -3,18 +3,29 @@ import styled from 'styled-components';
import { buttonColorMap } from '../../lib/styles/palette';
const ButtonBlock = styled.button`
width: 20%;
width: ${props => props.width || '80px'};
height: ${props => props.height || '40px'};
font-size: ${props => props.fontsize || '15px'};
background-color: ${props => buttonColorMap[props.color].background};
&:hover {
background-color: ${props => buttonColorMap[props.color].hoverBackground};
}
color: ${props => buttonColorMap[props.color].color};
float: ${props => props.float || ''};
border-radius: 0.3em;
cursor: pointer;
border: 1px ${props => buttonColorMap[props.color].background};
`;
const Button = ({ children, color, float }) => {
const Button = ({ children, color, float, width, height, fontsize }) => {
return (
<ButtonBlock color={color} float={float}>
<ButtonBlock
color={color || 'blue'}
float={float}
width={width}
height={height}
fontsize={fontsize}
>
{children}
</ButtonBlock>
);
......
{
"systemParams": "darwin-x64-88",
"modulesFolders": [],
"flags": [],
"linkedModules": [],
"topLevelPatterns": [],
"lockfileEntries": {},
"files": [],
"artifacts": {}
}
\ No newline at end of file