• Meet OMA at Smart City Expo World Congress • Barcelona • 3–5 November 2026 • Hall 3, Street F, Stand 90 •
• Live LwM2M demos • Water 2.0 panel • Smart City SIG sessions •

💧 OMA Utilities WG • Water 2.0 has launched • Utility Membership •

🏙️ OMA Conformance Tool • Apply for Early Access •


Action Card

Usage

The ShActionCard constructor displays a call-to-action card with an image or icon, a title, subtitle and text, and a button that sends readers to another page, such as a newsletter or membership sign-up page.

Basic

Stay updated with our articles updates

Per aspera ad astra

New text goes here.

Sign up
::ShActionCard
---
title: |
    Stay updated with our articles updates
subtitle: |
    Per aspera ad astra
labelButton: Sign up
colorButton: blue
urlButton: https://www.nasa.gov/
text: |
 *New text goes [here](https://www.nasa.gov/).*
---
::

Advanced settings

An example with customized ui attributes for enhanced display:

NASA Logo

Stay updated with our articles updates

Per aspera ad astra

New text goes here.

Sign up
::ShActionCard
---
ui:
    wrapper: shadow-xl
    title: text-4xl
    subtitle: font-mono
    text: text-primary
imageBackground: https://static.vecteezy.com/system/resources/previews/026/459/005/non_2x/abstract-background-images-wallpaper-ai-generated-free-photo.jpg
title: |
    Stay updated with our articles updates
subtitle: |
    Per aspera ad astra
labelButton: Sign up
colorButton: blue
urlButton: https://www.nasa.gov/
urlImage: https://gpm.nasa.gov/sites/default/files/document_files/NASA-Logo-Large.png
altImage: NASA Logo
icon: noto:rocket
altIcon: Rocket
text: |
 *New text goes [here](https://www.nasa.gov/).*
---
::

Props

PropTypeDefaultDescription
descriptionstring""Note for content writers. It is not rendered on the website.
titlerequiredstring""The title text to be displayed.
subtitlestring""The subtitle text to be displayed, if any.
textstring""The main text content to be displayed.
urlImagestring""The source URL of the image to be displayed.
altImagestring""Alternative text for the image, used for accessibility and in case the image fails to load.
urlButtonstring""The URL link the button will navigate to when clicked.
labelButtonstring""The label text displayed on the button.
colorButtonstring""The color of the button.
styleButton'solid' | 'outline' | 'soft' | 'subtle' | 'ghost' | 'link'"solid"The style of the button (can be: `outline`, `soft`, `solid`, `link`, `ghost`).
iconstring""The name of the icon to be displayed.
altIconstring""Alternative text for the icon, used for accessibility.
imageBackgroundstring""Sets a background image on the card via inline CSS background-image.
uiRecord<string, any>–Overrides the default classes of the UI config below. Values are merged with the defaults using tailwind-merge.

Slots

This component has no slots.

UI config

Default classes of every styled element. Override any key through the ui prop.

KeyDefault classesDescription
wrappermt-6 dark:bg-inherit border border-neutral-300 dark:border-neutral-700 mx-auto p-4 rounded-md shadow-xs bg-no-repeat bg-cover size-full max-w-4xl max-h-3xlDefines the overall styling for the container that holds all the elements of the component.
imagemy-[2em] col-start-1 col-span-1 size-4/6 self-center place-self-center row-span-2 w-fit h-fitStyles applied to the image element, including properties like size and border radius.
titletitle text-xl md:text-2xl text-neutral-900 dark:text-neutral-100 text-center font-semiboldStyles applied to the title text, such as font size and color.
subtitlesubtitle text-lg text-center font-semibold text-neutral-500 dark:text-neutral-400 -mt-8Styles applied to the subtitle text, such as font size and color.
texttext text-md text-center font-normal not-proseStyles applied to the text content, such as font size and color.
buttoncol-start-3 col-span-1 mx-auto mb-4 not-proseDefines the styling for the button element, including hover effects and transition animations.