Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
React Select MenuList Props

 const { MenuList } = components;
  const CustomMenuList = ({ ...props }: any) => {
    console.log(props);
    return (
      <div>
        <MenuList {...props} />
        <hr className="m-0" />
        <div
          className="text-primary p-2  font-weight-bold c-pointer"
          onClick={() => history.push(CUSTOM_POST.replace(':type', 'contact-roles'))}
        >
          + Create New Role
        </div>
      </div>
    );
  };

I am using TypeScript. I am using Custom Component in ReactSelect.

What could be the type of props. I am not allowed to used any because of tslint.

<Select
          components={{
            MenuList: CustomMenuList,
          }}
          options={[...contactRoleOptions]}
         
        />

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

react-select exports MenuListComponentProps<OptionType> If you have not added anything then it should be just that...

OptionsType being the type you pass to options

Menu.d.ts
export type MenuListComponentProps<OptionType> = CommonProps<OptionType> &
  MenuListProps &
  MenuListState;
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!