JSFiddle - React, Tailwind, and code Playground

by Steve Tune

HTML

<div class="form-group">
    <input type="text" name="username" id="username" tabindex="1" class="form-control" placeholder="Email">
</div>

CSS

input::-webkit-input-placeholder:after {
    content: "*";
    color: red;
}

input::-moz-placeholder {
    color: red;
}

input::-moz-placeholder:after {
    content: "*";
    color: red;
}

input:-ms-input-placeholder {
    color: red;
}

input:-ms-input-placeholder:after {
    content: "*";
    color: red;
}