page BackButtoncomponent { seo { title = "BackButton component" description = "Reusable back button component." } view {
W WRNexusJS
actions component

BackButton

Reusable back button component.

@wrnexus/ui 0.2.654 props1 slots0 events

Usage

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

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

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

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/BackButton.wrn

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