Skip to content

Card Development

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<certara-card headline="Card title" subtitle="This is a subtitle" width="370px">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</certara-card>

certara-card

Properties

bodyClassName

Attributebody-class-name
Typestring
Defaultundefined
Requiredfalse
DescriptionAdds optional classes to the card body, for instance to zero out padding “pb-0” when there’s a footer that already has padding.

headline

Attributeheadline
Typestring
Defaultundefined
Requiredfalse
DescriptionOptional title of the card, appended as the first item in the card body.

href

Attributehref
Typestring
Defaultundefined
Requiredfalse
DescriptionLinks the entire card if present, using the stretched link utility class.

size

Attributesize
Type"default" | "xs"
Default'default'
Requiredfalse
DescriptionA size of ‘small” creates a mini-card, with tighter padding.

subtitle

Attributesubtitle
Typestring
Defaultundefined
Requiredfalse
DescriptionOptional subtitle of the card, appended to the card body under the title in smaller, gray text.

target

Attributetarget
Type"_blank" | "_parent" | "_self" | "_top" | "_unfencedTop"
Defaultundefined
Requiredfalse
DescriptionIf href is present, this sets the target of the link.

width

Attributewidth
Typestring
Defaultundefined
Requiredfalse
DescriptionOptional width of the card. Accepts a value of 30rem, 370px, or any valid CSS size value.

Events

There are no events available for this component

Methods

There are no public methods available for this component

Slots

NameDescription
Main slot for card content
footerSlot for custom footer content
headerSlot for custom header content
image-bottomSlot for an image that appears at the bottom of the card
image-topSlot for an image that appears at the top of the card

certara-card-header

Header Component
<certara-card-header slot="header">
<certara-hexagon class="bg-brand icon-brand">
<certara-icon name="file-import" variant="light" size="24"></certara-icon>
</certara-hexagon>
<span class="text-tertiary ml-4">Header Component</span>
</certara-card-header>

Properties

class

Attributeclass
Typestring
Defaultundefined
Requiredfalse
DescriptionAdditional class names to apply to the internal card header.

Events

There are no events available for this component

Methods

There are no public methods available for this component

Slots

NameDescription
Main slot for custom header content
Primary Secondary
<certara-card-footer slot="footer">
<certara-button color="brand" class="mr-3">Primary</certara-button>
<certara-button color="secondary">Secondary</certara-button>
</certara-card-footer>

Properties

class

Attributeclass
Typestring
Defaultundefined
Requiredfalse
DescriptionAdditional class names to apply to the internal card footer.

Events

There are no events available for this component

Methods

There are no public methods available for this component

Slots

NameDescription
Main slot for custom footer content

certara-card-image

<certara-card-image
slot="image-top"
placement="top"
image-src="/assets/img/empty-states/empty-inbox.svg"
alt="Empty inbox">
</certara-card-image>

Properties

alt

Attributealt
Typestring
Default''
Requiredfalse
DescriptionThe alt text for the image, used for accessibility.

imageSrc

Attributeimage-src
Typestring
Defaultundefined
Requiredfalse
DescriptionThe source URL of the image to display in the card.

placement

Attributeplacement
Type"bottom" | "top"
Defaultundefined
Requiredfalse
DescriptionThe placement of the image within the card.

Events

There are no events available for this component

Methods

There are no public methods available for this component

Slots

There are no slots available for this component

Legacy

Legacy components are not recommended for use in new projects.

header content Badge

Card title

Card Subheader

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

<article class="card" style="width:370px">
<header class="card-header d-flex align-items-center text-tertiary">
<img src="/assets/img/card-hex.png" width="57" class="mr-4" class="card-header__icon" />
header content
<span class="badge badge--warning">Badge</span>
</header>
<div class="card__body py-0">
<h3 class="card__title">Card title</h3>
<p class="card__subtitle">Card Subheader</p>
<p class="card__text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
<footer class="card__footer">
<button class="btn btn--brand mr-3">Primary</button>
<button class="btn btn--secondary">Secondary</button>
</footer>
</article>