Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

@mui/base has been deprecated


Hi,
@mui/base has been deprecated. I need to upgrade to @base-ui-components/react. May I know when u will make a new release with @base-ui-components/react? I am using your tailwind-react- javascript code.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


Hi,
thanks for your reply. It's nice to hear about the changes in upcoming react version.

I have fixed the tabs part with the answer from my stackoverlfow question.

Now I am stuck at Popper. I have replaced @mui/base/Popper with @mui/material/Popper

import { ClickAwayListener, Popper } from '@mui/base';
replaced with
import { ClickAwayListener, Popper } from '@mui/material';

I am not using Paper as suggested in material examples. Still using your code as-is

Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

Check your code at Tabs.jsx:6.
at _c
at div
at _c6 (http://localhost:5173/src/metronic/components/ui/dialog.jsx:86:3)
at div

I am not sure if the problem is in Popper or in Tabs



Below is the code from MenuItem.jsx

const modifiedChild = cloneElement(child, modifiedProps);
return <Popper style={{
zIndex: dropdownZIndex,
pointerEvents: trigger === 'click' ? 'auto' : 'none'
}} {...propDropdownProps} anchorEl={show ? menuItemRef.current : null} open={show} autoFocus={false} className={clsx(child.props.rootClassName && child.props.rootClassName)}>
<ClickAwayListener onClickAway={handleHide}>
<div className={clsx('menu-container', child.props.baseClassName && child.props.baseClassName)} ref={menuContainerRef} style={{
pointerEvents: 'auto'
}}>
{modifiedChild}
</div>
</ClickAwayListener>
</Popper>;
};

Below is the code from Tabs.jsx

import React, { forwardRef } from 'react';
import { Tabs as MuiTabs } from '@base-ui-components/react/tabs';

// Define the extended tab component
const Tabs = forwardRef((props, ref) => {
return <MuiTabs {...props} ref={ref} />;
});
export { Tabs };

Can you please give me some tips to handle this issue?

Best Regards
Uma



Hi,

We have tried but so far no luck. We will check it further and get back to you asap.

Regards,
Sean



Hi,

We will be migration our Metronic React version with our new open source Reaxt/Next.js library: https://crudhunt.com/

Please stick around, CrudHunt going to be a one stop library for React projects and Metronic will use it and extend with amazing layouts. Soon we will start releasing free UI Blocks for CrudHunt.

We will release a CrudHunt templates for Metronic in a few weeks.

Regards,
Sean


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(