react-select#MenuProps TypeScript Examples

The following examples show how to use react-select#MenuProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReactSelectCustomization.tsx    From ke with MIT License 6 votes vote down vote up
function Menu<OptionType, IsMulti extends boolean = false>({
  innerProps,
  ...rest
}: MenuProps<OptionType, IsMulti>): JSX.Element {
  return (
    <selectComponents.Menu
      {...rest}
      innerProps={{ ...innerProps, 'data-test-id': rest.selectProps.name?.concat('--menu') || 'menu' }}
    />
  )
}
Example #2
Source File: index.tsx    From admin with MIT License 6 votes vote down vote up
Menu = ({ className, ...props }: MenuProps) => {
  return (
    <components.Menu
      className={clsx({
        "-mt-1 z-60": !props.selectProps.isSearchable,
      })}
      {...props}
    >
      {props.children}
    </components.Menu>
  )
}