How can I imitate the look of the outline and label from Material-UI's outlined textfield?

前端 未结 3 746
误落风尘
误落风尘 2021-01-19 07:44

I\'m trying to imitate the outlined textfield from Material-UI but I don\'t know how to hide the border behind the title text.

In the below image, notice how the \"D

3条回答
  •  醉酒成梦
    2021-01-19 08:09

    Just apply the same background color on the color div as the parent's background color, you can do it by background-color: inherit like this:

    Color
    { availableColors.map(color =>
    ) }

提交回复
热议问题