Kaynağa Gözat

style button

AykutSarac 3 yıl önce
ebeveyn
işleme
b349207d35
1 değiştirilmiş dosya ile 9 ekleme ve 2 silme
  1. 9 2
      src/components/Button/index.tsx

+ 9 - 2
src/components/Button/index.tsx

@@ -18,14 +18,21 @@ function getButtonStatus(status: keyof typeof ButtonType, theme: DefaultTheme) {
 }
 
 const StyledButton = styled.button<{ status: keyof typeof ButtonType }>`
+  display: block;
   background: ${({ status, theme }) => getButtonStatus(status, theme)};
   color: ${({ theme }) => theme.FULL_WHITE};
   cursor: pointer;
 `;
 
-const StyledButtonContent = styled.div``;
+const StyledButtonContent = styled.div`
+  padding: 8px;
+`;
 
-export const Button: React.FC<ButtonProps> = ({ children, status, ...props }) => {
+export const Button: React.FC<ButtonProps> = ({
+  children,
+  status,
+  ...props
+}) => {
   return (
     <StyledButton type="button" status={status ?? "DEFAULT"} {...props}>
       <StyledButtonContent>{children}</StyledButtonContent>