Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Inserting html calendar into react


I need a calendar in my React app and I want to use the calendar from Metronic html admin dashboard. How can I do it?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Extract the calendar component from Metronic's HTML version (look in assets/js/calendar.js) and wrap it in a React component. For more UI solutions, check tools like for inspiration on component integration.



Ensure that your React app is configured to use the appropriate CSS and JavaScript files from the Metronic theme. This might involve MapQuest Route Planner adding them to your index.html file or using a CSS loader in your build process.



First, you need to install the necessary npm packages for React and calendar-related libraries. wordle web


Deleted comment
Deleted comment

Hi,

Thank you for reaching out to us.

In our React version, we currently don't utilize the React-Fullcalendar plugin.

You can install React-Fullcalendar dependencies using the following command:

npm install --save \
@fullcalendar/core \
@fullcalendar/react \
@fullcalendar/daygrid


After installation, you can use it in your component as demonstrated below:

<FullCalendar
plugins={[ dayGridPlugin ]}
initialView="dayGridMonth"
weekends={false}
events={[
{ title: "event 1", date: "2019-04-01" },
{ title: "event 2", date: "2019-04-02" }
]}
/>


For more examples, refer to the official Fullcalendar docs.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(