Skip to content

Commit

Permalink
refactor #24 : 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minh0518 committed Feb 14, 2025
1 parent c1d5958 commit 64fc0ad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { BaseButton } from './common/components/systembutton';
function App() {
return (
<div>
{/* 기본 디폴트 테마 사용 */}
<BaseButton>Default</BaseButton>

{/* 디자인 시스템 테마 주입 */}
<BaseButton variant="destructive" size="sm">
Small + Destructive
</BaseButton>

{/* asChild에 따른 Slot 사용 */}
{/* 디자인 시스템 테마 & asChild에 따른 Slot 사용 */}
<BaseButton variant="link" asChild>
<a href="https://example.com" target="_blank" rel="noreferrer">
External Link
Expand Down
1 change: 1 addition & 0 deletions src/common/components/kakaoauthbutton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Button, ButtonProps } from '../button';

import * as styles from './KakaoAuthButton.styles';

/** 고정된 로직과 스타일 사용*/
const KakaoAuthButton = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {
return (
<Button
Expand Down
1 change: 1 addition & 0 deletions src/common/components/systembutton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Button, ButtonProps } from '../button';
import * as styles from './BaseButton.styles';

/** TODO: 디자인 시스템에 따라 추가 예정 */
/** 디자인 시스템을 따르는 버튼 */
export type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
export type ButtonSize = 'default' | 'sm' | 'lg' | 'icon';

Expand Down

0 comments on commit 64fc0ad

Please sign in to comment.