Open this example in the interactive library
Source code
<style>
.demo::placeholder {
color: #475569;
font-style: italic;
}
</style>
<input class="demo" aria-label="Project" placeholder="Enter project name" />
Style placeholder text with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo::placeholder {
color: #475569;
font-style: italic;
}
</style>
<input class="demo" aria-label="Project" placeholder="Enter project name" />