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

Html

원문 보기 위키 갱신

카드(Card)는 다른 컴포넌트를 만드는 데 사용할 수 있는 일반적인 사각형 컨테이너예요. 일반 페이지 콘텐츠에는 기본 카드를, 대시보드나 작은 카드에는 컴팩트 변형을 사용해요.

출처: 문서

본문

Examples

Basic

Title

Body

Footer

With image and action

    PatternFly
Title

Body

Footer

With title in head

    This is a really really really really really really really really really really long title

Body

Footer

With subtitle

    This is a really really really really really really really really really really long title

This is a card subtitle.

Body

Footer

    PatternFly
Title

Subtitle

Body

Footer

With only actions in head (no title/footer)

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

Actions with no offset

  This is a card title

Body

Footer

With only image in head

    PatternFly
Title

Body

Footer

With no footer

Title

This card has no footer

With no title

This card has no title

Footer

With only a content section

Body

With multiple body sections

Title

Body

Body

Body

Footer

With only one body that fills

Title

Body pf-m-no-fill

Body pf-m-no-fill

Body

Footer

Compact

Title

Body

Footer

Large

Title

Body

Footer

Selectable

      Title

Body

Footer

      Disabled card

Body

Footer

      Selected but disabled card

Body

Footer

Selectable secondary style

      Title

Body

Footer

      Disabled card

Body

Footer

      Selected but disabled card

Body

Footer

Single selectable

      Title

Body

Footer

      Disabled card

Body

Footer

      Selected but disabled card

Body

Footer

Actionable (button)

      Title

Body

Footer

      Title (clicked)

Body

Footer

      Disabled card

Body

Footer

Actionable (link)

      [](#)
    
    
      
      Title

Body

Footer

      [](#)
    
    
      
      Disabled card

Body

Footer

Actionable secondary style

      Title

Body

Footer

      Disabled card

Body

Footer

Actionable and selectable

Body

Footer

Body

Footer

Body

Footer

Body

Footer

Actionable and selectable secondary style

Body

Footer

Body

Footer

Body

Footer

Body

Footer

Secondary

Title

Body

Footer

Plain

Title

Body

Footer

Expandable

    Title

Expandable with image

Expanded

  Title

Body

Footer

Full height card

    Title

Body

Footer

Expandable toggle on right

    Title

Card with dividers between sections

Title

Body

Body

Footer

Documentation

Overview

카드는 다른 컴포넌트를 만드는 데 사용할 수 있는 일반적인 사각형 컨테이너예요. 일반 페이지 콘텐츠에는 기본 카드를, 대시보드나 작은 카드에는 컴팩트 변형을 사용하세요.

Usage

| | Class | Applied | Outcome

| .pf-v6-c-card | | | | Creates a card component. Required | | `.pf-v6-c-card__title` | | | | Creates a card title container. | | .pf-v6-c-card__title-text | | , , , , , , | | Creates a card title text element. | | `.pf-v6-c-card__subtitle` | | Creates a card subtitle element. | | `.pf-v6-c-card__body` | | | | Creates the body of a card. By default, the body element fills the available space in the card. You can use multiple .pf-v6-c-card__body elements. | | .pf-v6-c-card__footer | | | | Creates the footer of a card. | | `.pf-v6-c-card__header` | | | | Creates the header of the card where images, actions, and/or the card title can go. | | .pf-v6-c-card__header-toggle | | | | Creates the expandable card toggle. | | `.pf-v6-c-card__header-toggle-icon` | | | | Creates the expandable card toggle icon. | | .pf-v6-c-card__actions | | | | Creates an actions element to be used in the card header. | | `.pf-v6-c-card__selectable-actions` | | | | Creates an element to hold a checkbox or radio and the related label used to make a card selectable or clickable. | | .pf-v6-c-card__header-main | | | | Creates a wrapper element to be used in the card header when using an image, logo, or text. Required if `.pf-v6-c-card__header` has content outside of a card header toggle or card header actions | | `.pf-v6-c-card__expandable-content` | | | | Creates the expandable card's expandable content. | | .pf-v6-c-card__sr-input | | `` | | Creates an input which, when focused, makes a following .pf-v6-c-card appear focused. | | .pf-m-compact | | .pf-v6-c-card | | Creates a compact variation of the card component that involves smaller font sizes and spacing. This variation is for use on dashboards and where a smaller card is preferred. | | .pf-m-display-lg | | .pf-v6-c-card | | Creates a large variation of the card component that involves larger font sizes and spacing. This variation is for marketing use cases. | | .pf-m-wrap | | .pf-v6-c-card__header | | Modifies the card header to wrap its children. | | .pf-m-no-fill | | .pf-v6-c-card__body | | Sets a .pf-v6-c-card__body not to fill the available space in .pf-v6-c-card. .pf-m-no-fill can be added to multiple card bodies. | | .pf-m-selectable | | .pf-v6-c-card | | Modifies a card to be selectable. | | .pf-m-clickable | | .pf-v6-c-card | | Modifies a card to be clickable. | | .pf-m-selected | | .pf-v6-c-card | | Modifies a selectable card for selected state styling. Can be used in addition to indicating selection via the .pf-v6-c-card__input. | | .pf-m-current | | .pf-v6-c-card | | Modifies a card that is both clickable and selectable for clicked state styling. | | .pf-m-disabled | | .pf-v6-c-card | | Modifies a card so it is not selectable or clickable. | | .pf-m-secondary | | .pf-v6-c-card | | Modifies the card to have secondary styling. | | .pf-m-flat | | .pf-v6-c-card | | Modifies the card to have a border instead of a shadow. .pf-m-flat is for use in layouts where cards are against a white background. | | .pf-m-rounded | | .pf-v6-c-card | | Modifies the card to have rounded corners. | | .pf-m-plain | | .pf-v6-c-card | | Modifies the card to have no box shadow and no background color. | | .pf-m-expanded | | .pf-v6-c-card | | Modifies the card for the expanded state. | | .pf-m-toggle-right | | .pf-v6-c-card__header | | Modifies the expandable card header toggle to be positioned at flex-end. | | .pf-m-full-height | | .pf-v6-c-card | | Modifies the card to full height of its parent. | | .pf-m-glass | | .pf-v6-c-card | | Applies glass styles when glass theme is enabled. | | .pf-m-no-offset | | .pf-v6-c-card__actions | | Removes the negative vertical margins on the actions element intended to align the action content with the card title. |

Edit this page on GitHub

더 알아보기 (Learn more)