fix. 버튼 컴포넌트 제작
This commit is contained in:
19
layers/types/components/button.ts
Normal file
19
layers/types/components/button.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
// 버튼 크기 타입
|
||||
export type ButtonSize = 'large' | 'medium' | 'small' | 'extra-small'
|
||||
|
||||
// 버튼 설정 인터페이스
|
||||
export interface ButtonConfig {
|
||||
padding: string
|
||||
height: string
|
||||
text: string
|
||||
rounded: string
|
||||
}
|
||||
|
||||
// Button 컴포넌트 Props 인터페이스
|
||||
export interface ButtonProps {
|
||||
size?: ButtonSize
|
||||
backgroundColor?: string
|
||||
textColor?: string
|
||||
icon?: string
|
||||
disabled?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user