page AcceptAllCookiesButtoncomponent { seo { title = "AcceptAllCookiesButton component" description = "Reusable accept all cookies button component." } view {
W WRNexusJS
actions component

AcceptAllCookiesButton

Reusable accept all cookies button component.

@wrnexus/ui 0.3.46 props1 slots0 events

Usage

Components are auto-discovered. Use the component directly in any .wrn view:

<AcceptAllCookiesButton
  label="Action"
  href="href"
  type="button"
  variant="primary"
  disabled="false"
/>

Legacy mount name: data-component="AcceptAllCookiesButton".

Props and attributes

PropTypeRequirementDefault
labelstringOptional"Action"
hrefstringOptional""
typestringOptional"button"
variantstringOptional"primary"
disabledbooleanOptionalfalse
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/AcceptAllCookiesButton.wrn

component AcceptAllCookiesButton {
  props {
    label = "Action"
    href = ""
    type = "button"
    variant = "primary"
    disabled = false
    class = ""
  }
  view {
        <span class="wire-catalog-action {class}">{#if href}<a href="{href}" class="wire-btn wire-btn--{variant}">{label}<slot />
        </a>{:else}<button type="{type}" disabled="{disabled}" class="wire-btn wire-btn--{variant}">{label}<slot />
        </button>{/if}</span>
    }
}
} }