Skip to content
W WRNexusJS
actions component

GhostButton

Reusable ghost button component.

@wrnexus/ui 0.2.674 props1 slots0 events

Usage

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

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

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

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

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