Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $9
Get for 99$

How to Integrate and Customize Prebuilt Components in React Using the Metronic Theme from Envato


Hi everyone,

I recently purchased the Metronic theme from Envato for my React project, and I'm a bit confused about how to effectively integrate and customize the prebuilt components provided with the theme. Specifically, I'm looking for guidance on:

How to properly set up the Metronic theme in a React project.
Best practices for importing and using the prebuilt components (e.g., buttons, cards, forms).
Tips for customizing these components to fit the design and functionality needs of my application.
Any advice on structuring my project when using a comprehensive theme like Metronic.
If anyone has experience with this theme or similar ones, I'd greatly appreciate your insights and any examples you could share. Thanks in advance!


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 (1)


Hi,

Sorry for the late reply.

The integration instructions depend on your project requirements. If you already have an existing project, you can simply copy the theme files and paste them into your project.

Make sure to include the mandatory style files:

import "./_metronic/assets/sass/style.react.scss";
import "./_metronic/assets/sass/style.scss";


If you want to use the Keenicon set, be sure to import the Keenicon styles as shown below:

import "./_metronic/assets/keenicons/duotone/style.css";
import "./_metronic/assets/keenicons/outline/style.css";
import "./_metronic/assets/keenicons/solid/style.css";


To use our custom TypeScript components, you should also include the global components initialization file. Refer to the initialization in src/_metronic/layout/MasterInit.tsx.

If you do not have an existing project, it is recommended to use our current structure as a base and modify the files to suit your needs. Following our default structure will make it easier to apply new Metronic updates.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


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  :(