Компоненты PrimeNG
Card

Карточка

PrimeNG/Card (opens in a new tab)

С чего начать

Подключите модуль

import { CardModule } from 'primeng/card';

Встройте компонент с помощью тэга p-card.

Simple Card

Advanced Card

Текст заголовка задается с помощью свойстваheader, опционально свойствоsubheaderдоступно для задания дополнительной информации.

No padding

Свойства

NameTypeDefaultDescription
headerstringnullTitle of the card.
subheaderstringnullSecondary title of the card.
stylestringnullInline style of the component.
styleClassstringnullStyle class of the component.

Шаблоны

NameParameters
header-
title-
subtitle-
content-
footer-

Стилизация

NameElement
p-cardContainer element.
p-card-headerTitle element.
p-card-subheaderSubtitle element.
p-card-contentContent of the card.
p-card-footerFooter of the card.