Placeholder opacity
Utilities for controlling the opacity of an element's placeholder color
Class reference
Usage
Control the opacity of an element’s placeholder color using the .placeholder-opacity-{amount}
utilities.
Responsive
To control an element’s placeholder color opacity at a specific breakpoint, add a {screen}:
prefix to any existing placeholder color opacity utility. For example, use md:placeholder-opacity-50
to apply the placeholder-opacity-50
utility at only medium screen sizes and above.
<input class="placeholder-gray-500 placeholder-opacity-75 **md:placeholder-opacity-50** ..." placeholder="jane@example.com">
For more information about Elements’ responsive design features, check out the Responsive Design documentation.
On this Page
v1.13.5