1

For this component::

<lightning-input type="toggle" ...></lightning-input>

the "Inactive" and "Active" text appears to be fixed:

Active and Inactive example

Is it? Is coding this up per the SLDS documentation the only way to change it?

3

As per the documentation use the:

  • message-toggle-active
  • message-toggle-inactive

Attributes on the lightning-input itself to define the text.

| improve this answer | |
  • Duh - thought I'd looked but obviously not. Thank-you. – Keith C Jun 30 at 14:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.