Skip to content

如何设置Input组件的placeholder颜色 #48472

Answered by kiner-tang
mingxin-yang asked this question in Q&A
Discussion options

You must be logged in to vote

 你这个问题实际上并不是 antd 的问题,而是原生 input 的问题,可以给 input 组件绑定 class 后设置 ::placeholder 伪类设置样式:

https://stackblitz.com/edit/react-jmnjtp?file=demo.tsx,index.css

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by afc163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants