--- 
title: Spinner
description: Loading spinner
category: components
a1Full: true
alias: progress spinner, loading, loader
a1Densities: true
group: Data Display

module: NxSpinnerModule
components:
  - name: NxSpinnerComponent
    selector: nx-spinner
    inputs:
      - name: inverse
        desc: "Whether the spinner should use an inverse styling."
        default: input<boolean, BooleanInput>(false, { transform: booleanAttribute })
        type: "InputSignalWithTransform<boolean, BooleanInput>"
      - name: ariaPoliteness
        desc: "Sets the aria live regions of the spinner. Default is 'assertive'."
        default: input<AriaPolite>(ARIA_POLITENESS_ASSERTIVE)
        type: "InputSignal<'polite' | 'assertive' | 'off'>"
      - name: size
        desc: "Sets the size of the spinner. Default is 'small'."
        type: "'small' | 'medium' | 'large' | 's' | 'm' | 'l'"
      - name: negative
        desc: "Whether the spinner should use a negative styling."
        type: "BooleanInput"
      - name: activationAnnouncement
        desc: "Message that will be announced by screen readers at instantiation. Do __not__ combine with an `aria-live` area. Empty messages will be ignored. Defaults to empty/no message"
        type: "string"
      - name: completionAnnouncement
        desc: "Message that will be announced by screen readers at destroy. Do __not__ combine with an `aria-live` area. Empty messages will be ignored. Defaults to empty/no message"
        type: "string"

---