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

🏙️ OMA Conformance Tool • Apply for Early Access •


Helper Component

Usage

Basic

The ShHelperComponent constructor shows two logos stacked vertically. Each logo has a dark-mode and a light-mode version, and the one matching the current color theme is displayed.

By default, the first logo is the OMA logo and the second logo is /images/oma2.png (dark mode only).

::ShHelperComponent
---
firstLogoDark: /logo-dark.png
firstLogoLight: /logo-light.png
secondLogoDark: /images/oma2.png
secondLogoLight: /path/to/second-logo-light.png
---
::

Advanced settings

Resizing the second logo in both color modes:

::ShHelperComponent
---
ui:
    secondLogoDark: size-[73%]
    secondLogoLight: size-[73%]
---
::

Props

PropTypeDefaultDescription
descriptionstring""Note for content writers. It is not rendered on the website.
firstLogoDarkstring"/logo-dark.png"Path of the first logo shown in dark mode.
firstLogoLightstring"/logo-light.png"Path of the first logo shown in light mode.
secondLogoDarkstring"/images/oma2.png"Path of the second logo shown in dark mode.
secondLogoLightstring""Path of the second logo shown in light mode. Nothing is rendered in light mode when empty.
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
wrapper""Styling for the outermost container.
innerflex-col -mt-3Styling for the container holding both logos.
firstLogo""Styling for the container of the first logo.
firstLogoDarkm-0 max-w-full max-h-full object-containFirst logo in dark mode.
firstLogoLightm-0 max-w-full max-h-full object-containFirst logo in light mode.
secondLogomt-10Styling for the container of the second logo.