Card
Surface that groups related content and actions.
certara-card
Section titled “certara-card”Surface that groups related content and actions.
Properties
Section titled “Properties”bodyClassName
| Attribute | body-class-name |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Adds optional classes to the card body, for instance to zero out padding “pb-0” when there’s a footer that already has padding. |
headline
| Attribute | headline |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Optional title of the card, appended as the first item in the card body. |
href
| Attribute | href |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Links the entire card if present, using the stretched link utility class. |
size
| Attribute | size |
| Type | "default" | "xs" |
| Default | 'default' |
| Required | false |
| Description | A size of ‘small” creates a mini-card, with tighter padding. |
subtitle
| Attribute | subtitle |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Optional subtitle of the card, appended to the card body under the title in smaller, gray text. |
target
| Attribute | target |
| Type | "_blank" | "_parent" | "_self" | "_top" | "_unfencedTop" |
| Default | undefined |
| Required | false |
| Description | If href is present, this sets the target of the link. |
width
| Attribute | width |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Optional width of the card. Accepts a value of 30rem, 370px, or any valid CSS size value. |
Events
Section titled “Events”There are no events available for this component
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Main slot for card content | |
footer | Slot for custom footer content. Should use <certara-card-footer>. |
header | Slot for custom header content. Should use <certara-card-header>. |
image-bottom | Slot for an image that appears at the bottom of the card. Should use <certara-card-image placement="bottom">. |
image-top | Slot for an image that appears at the top of the card. Should use <certara-card-image placement="top">. |
certara-card-header
Section titled “certara-card-header”Header region of a
Properties
Section titled “Properties”There are no public properties available for this component
Events
Section titled “Events”There are no events available for this component
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Main slot for custom header content |
certara-card-footer
Section titled “certara-card-footer”Footer region of a
Properties
Section titled “Properties”There are no public properties available for this component
Events
Section titled “Events”There are no events available for this component
Methods
Section titled “Methods”There are no public methods available for this component
| Name | Description |
|---|---|
| Main slot for custom footer content |
certara-card-image
Section titled “certara-card-image”Image region of a
Properties
Section titled “Properties”alt
| Attribute | alt |
| Type | string |
| Default | '' |
| Required | false |
| Description | The alt text for the image, used for accessibility. |
imageSrc
| Attribute | image-src |
| Type | string |
| Default | undefined |
| Required | false |
| Description | The source URL of the image to display in the card. |
placement
| Attribute | placement |
| Type | "bottom" | "top" |
| Default | undefined |
| Required | false |
| Description | The placement of the image within the card. |
Events
Section titled “Events”There are no events available for this component
Methods
Section titled “Methods”There are no public methods available for this component
There are no slots available for this component