Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we hide default arrow mark in select box? #63

Open
priyabsetec1 opened this issue May 13, 2024 · 0 comments
Open

How can we hide default arrow mark in select box? #63

priyabsetec1 opened this issue May 13, 2024 · 0 comments

Comments

@priyabsetec1
Copy link

image
We tried below :
ChevronIcon: () => "hidden"

But its not working

        <Select
            value={defaultStatus}
            onChange={handleStatus}
            options={statusList}
            formatOptionLabel={(data) => (
              <li
                className={`block bg-getstartgray hover:bg-lightgray text-white transition duration-200 px-2 py-2 cursor-pointer select-none truncate rounded ${!data.isSelected ? `text-gray bg-black-500` : `bg-blue-100 text-gray-500`}`}
              >
                {data.label}
              </li>
            )}
            primaryColor={"bg-black"}
            classNames={{
              menuButton: () =>
                "bg-transparent hover:bg-lightgray flex justify-between cursor-pointer border border-bountyitemline rounded-xl px-2 py-1 w-full text-lightwhite appearance-none form-selects bg-positonSize bg-no-repeat bg-arrowSize shadow-[none] outline-0",
              menu: "absolute z-10 w-full shadow-lg border border-getstartgray rounded py-1 mt-1.5 text-sm text-gray-700",
              list: "bg-getstartgray bg-opacity-90 rounded-0 hover:bg-getstartgray bg-opacity-90 border border-bountyitemline",
              ChevronIcon: () => "hidden",
              tagItemIcon: "hidden",
              tagItemIconContainer: "hidden",
            }}
          />

Please guide us if any option is there or if we using wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant