Skip to content

How to style the hover/focused effect? #5611

Answered by manjushsh
lc796 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @lc796,
You can do something like this:

multiValueRemove: (provided) => {
    return {
      ...provided,
      padding: "5px 10px",
      backgroundColor: "rgba(255, 200, 2, 0.704)",
      textDecoration: "none",
      ":hover": {
        backgroundColor: "red",
        color: "white",
        textDecoration: "line-through"
      },
      borderRadius: "17px"
    };
  }

Example CodeSandbox. See 4th select from top.

Stack Overflow guide
Simiar queastion: #3345

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lc796
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