본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

Card

원문 보기 위키 갱신

카드는 페이지 안에서 관련된 콘텐츠를 하나의 상자로 묶어 보여주는 컴포넌트예요. 제목, 본문, 푸터, 헤더 이미지와 액션, 선택형·동작형 카드, 확장형 카드 등 다양한 형태로 활용할 수 있어요.

출처: 문서

본문

Examples

Basic cards

기본 카드는 보통 , 와 를 포함해요. 필요에 따라 이 컴포넌트들 중 일부는 생략할 수 있지만, 최소한 하나는 넣어 카드 항목에 대한 설명을 제공하는 것을 권장해요.

Title

Body

Footer

Card with subtitle

부제목이 있는 기본 카드예요.

Title

Subtitle

Body

Footer

Card with subtitle and Actions

이 카드는 이미지, 액션, 부제목을 한 카드에 함께 담은 예시예요.

actions hasNoOffset

Title

Subtitle

Body

Footer

Secondary cards

카드의 variant 속성을 secondary로 설정하면 카드에 보조 배경색 스타일을 적용할 수 있어요.

Title

Body

Footer

Modifiers

아래에 정리한 속성을 사용해 카드 내용의 스타일을 추가로 조정할 수 있어요. 이 예시에서는 각 체크박스를 선택해 수정자를 하나씩 켜 볼 수 있어요. 대부분의 수정자는 서로 조합해서 쓸 수 있지만, isCompact와 isLarge는 서로 모순되므로 함께 사용할 수 없어요.

isCompact

isLarge

isFullHeight

isPlain

Title

Body

Footer

| | Modifier | Description

| isCompact | | Modifies the card to include compact styling. Should not be used with isLarge. | | isLarge | | Modifies the card to be large. Should not be used with isCompact. | | isFullHeight | | Modifies the card so that it fills the total available height of its container. | | isPlain | | Modifies the card to include plain styling, which removes the border and background. |

Header images and actions

의 `actions` 속성으로 카드 헤더 액션을 포함할 수 있어요. 아래 예시는 [Brand](/components/brand) 컴포넌트로 이미지를 넣고, actions에 케밥 드롭다운과 체크박스도 함께 담고 있어요. ``의 actions 속성은 기본값이 false인 hasNoOffset 속성을 포함해요. hasNoOffset이 false일 때는 음수 마진이 적용되어 기본 크기의 카드 제목과 카드 액션을 정렬하는 데 도움을 줘요. hasNoOffset을 사용하면 이 음수 마진을 제거할 수 있는데, 예를 들어 큰 카드 제목이나 높은 헤더 이미지를 사용하는 구현에서 카드 액션을 더 잘 정렬할 수 있어요. 아래 예시에서 "actions hasNoOffset" 체크박스를 선택해 이 동작을 확인해 보세요.

actions hasNoOffset

Title

Body

Footer

Title inline with images and actions

를 안에서 이동하면 이미지나 액션과 인라인으로 배치되는 스타일을 적용할 수 있어요.

This is a really really really really really really really really really really long header

Body

Footer

Card header without title

없이도 카드 액션을 카드 헤더에 배치할 수 있어요. 없이도 이미지를 카드 헤더에 배치할 수 있어요.

This is the card body. There are only actions in the card head.

Card with header that wraps

This is a longer card title that takes up more space

This is the card body

With HTML heading element

component 속성을 사용하면 카드 제목을 HTML 제목 요소 안에 넣을 수 있어요.

Title within an

더 알아보기 (Learn more)