src/components/DesignSystem/Button/Index.vue

Codemate 의 모든 버튼을 담당합니다.

Prop nameTypeDefaultRequiredDescription
colorstringred

색깔 지정 가능 red, white, green, on, off

shapestringnormal

향테 지정 가능 normal, round

Event nameTypeDescription
clicknull

버튼 클릭했을 때 실행되는 이벤트

SlotDescription
default

버튼 안에 들어갈 내용을 적을 수 있는 기본 slot

버튼 디자인 예시입니다.

primary

옆으로 길어집니다.
옆으로 길어집니다.

white

코드메이트 버튼입니다.

white-secondary

확인

black

확인

black-secondary

확인
src/components/DesignSystem/Card/Index.vue

코드메이트 기본 카드 모양입니다.

Prop nameTypeDefaultRequiredDescription
shadowDirectionstringdown

그림자 방향 down, right-down, right-up

SlotDescription
default

기본적으로 display:flex; flex-direction: column; 까지 적용되어있습니다.

기본적인 내부 padding 은 지정 되어있습니다.

Header
Sub header
Label
형식에 맞지 않습니다.
Label
형식에 맞지 않습니다.
이 컴포넌트는 기본적인 테두리를 정의하고 있습니다.
카드 안에 자유롭게 내용을 적을 수 있으며,
flex-direction 은 column 입니다.
이렇게 말입니다.
src/components/DesignSystem/Heading/Index.vue

Heading 만 필요한 순간이 있죠. :)

Prop nameTypeDefaultRequiredDescription
colorstringblack

색상 primary, black, white

ranknumber0

0 ~ 4 까지의 중요도. 0 = h1D. 4 = h4.

SlotDescription
default

내용을 적는 공간입니다.

h1D 큰 제목
h1 큰 제목
h2 큰 제목
h3 큰 제목
h4 큰 제목
src/components/DesignSystem/Input/Index.vue
Prop nameTypeDefaultRequiredDescription
errorMessagestring형식에 맞지 않습니다.

Validation 에 걸렸을 때 보여줄 에러 메세지

labelstring

인풋의 제목 label

placeholderstringplaceholder

placeholder

typestringtext

기본 input 의 type 과 동일 text, number, date, password, email 등

v-modelstring
validationfuncFunction

값이 Valid 한지 판단하는 함수

Event nameTypeDescription
enterunknown

enter 눌렀을 때 이벤트

width 에 관한 주의

기본 너비는 grid system 에 따라 가장 자주 사용되는 328px 로 맞춰져있지만, 언제든 변경이 가능합니다.

다시 입력하세요.
Question Title
src/components/DesignSystem/ProfileImage/Index.vue

User 의 Profile Image 컴포넌트입니다.

Prop nameTypeDefaultRequiredDescription
isLoadingbooleanfalse

이미지가 아직 로드중인지. 로드중이라면 기본 색상 보여줌.

sizestringsmall

이미지 크기 3종류 big, medium, small

srcstring

의 src 를 포워딩. 아무것도 입력 안하면 기본 색상 보여줌

src/components/DesignSystem/Tag/Index.vue

codemate 의 Tag component 입니다.

Prop nameTypeDefaultRequiredDescription
isRemovablebooleanfalse

지우기 버튼이 있는 태그인지

SlotDescription
default

태그 이름을 넣는 기본 슬롯입니다.

Default Example Usage
src/components/DesignSystem/TextArea/Index.vue
Prop nameTypeDefaultRequiredDescription
errorMessagestring형식에 맞지 않습니다.

Validation 에 걸렸을 때 보여줄 에러 메세지

labelstring

인풋의 제목 label

placeholderstringplaceholder

기본 textarea 의 placeholder 포워딩

v-modelstring
validationfuncFunction

값이 Valid 한지 판단하는 함수

Event nameTypeDescription
enterunknown

enter 눌렀을 때 이벤트

widthheight 에 관한 주의

기본 너비는 grid system 에 따라 가장 자주 사용되는 328px 로 맞춰져있지만, 언제든 변경이 가능합니다. 기본 높이는 grid system 에 따라 가장 자주 사용되는 112px 로 맞춰져있지만, 언제든 변경이 가능합니다.

제목입니다.
무조건 틀리셨습니다.

Codemate Component Style Guide