Skip to content
W WRNexusJS
actions component

DownloadButton

Reusable download button component.

@wrnexus/ui 0.2.674 props1 slots0 events

Usage

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

<DownloadButton
  label="Action"
  type="button"
  disabled="false"
/>

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

Props and attributes

PropTypeRequirementDefault
labelstringOptional"Action"
typestringOptional"button"
disabledbooleanOptionalfalse
classstringOptional""

Slots

  • default

Events

This component does not declare a custom event.

Source contract

Installed source: components/DownloadButton.wrn

component DownloadButton {
  props {
    label = "Action"
    type = "button"
    disabled = false
    class = ""
  }
  view {
        <button type="{type}" disabled="{disabled}" class="wire-btn wire-btn--default {class}">{label}<slot />
        </button>
    }
}