RegionalPrivacyBanner
Reusable regional privacy banner component.
Usage
Components are auto-discovered. Use the component directly in any .wrn view:
<RegionalPrivacyBanner
label="RegionalPrivacy"
title="title"
description="description"
value="value"
variant="default"
/>Legacy mount name: data-component="RegionalPrivacyBanner".
Props and attributes
| Prop | Type | Requirement | Default |
|---|---|---|---|
label | string | Optional | "RegionalPrivacy" |
title | string | Optional | "" |
description | string | Optional | "" |
value | string | Optional | "" |
variant | string | Optional | "default" |
class | string | Optional | "" |
Slots
default
Events
This component does not declare a custom event.
Source contract
Installed source: components/RegionalPrivacyBanner.wrn
component RegionalPrivacyBanner {
props {
label = "RegionalPrivacy"
title = ""
description = ""
value = ""
variant = "default"
class = ""
}
view {
<aside role="status" class="wire-alert wire-alert--{variant} wire-catalog-feedback {class}">
<strong data-show="title || label">{title || label}</strong>
<span data-show="value" class="wire-badge wire-badge--{variant}">{value}</span>
<p data-show="description">{description}</p>
<slot />
</aside>
}
}