0
                        message-when-pattern-mismatch="First Name accepts only characters(a-z)"
                        message-when-value-missing="First Name is required"
                        class="custom-input"
                        required></lightning-input>

Hi all, just wondering is there any way that I can change the color of placeholder, for example, change it to red, thanks

1 Answer 1

0

The only attributes you can change are listed in the Styling Hooks for input. You can only change the colors for the background, border, and text, both when focused and not focused. You can't change other colors, such as the placeholder color.

1
  • got it thanks for your help
    – Yuqi Sui
    Commented Mar 12 at 2:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .