Please refer Faq's page in documentation itself for queries like customization like color ,rtl ,dark style..etc.
Following are the fundamental building blocks to creating a route.
main.tsx into App.tsx and add it
to the imports array.
import React, { Fragment, lazy } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter, Route, Routes } from 'react-router-dom';
//component import
const Dashboard = lazy(()=>import('./components/Dashboard/Dashboard'));
const Accordians = lazy(()=>import('./components/bootstrap/Accordians/Accordians'));
<Fragment>
<BrowserRouter>
<React.Suspense fallback={ }>
<Routes>
//Home page
<Route path={`${import.meta.env.BASE_URL}/`} element={ }>
<Route index element={ } />
<Route path={`${import.meta.env.BASE_URL}/Dashboard`} element={ } />
</Route>
//another component
<Route>
<Route path={`${import.meta.env.BASE_URL}/bootstrap/accordian`} element={ } />,
<Route path={`${import.meta.env.BASE_URL}/bootstrap/bootstrapAlerts`} element={ } />,
</Route>
</Routes>
</React.Suspense>
</BrowserRouter>
</Fragment>
Following are the fundamental building blocks to creating a new link.
├── src
├──commondata
├──sideMenu.tsx
Ex: {
menutitle: "MAIN",
Items: [
{ path: `${import.meta.env.BASE_URL}/Dashboard`, icon: 'fe fe-home', type: 'link', active: true, title: 'Dashboard' },
]
},
{
title: 'Bootstrap', icon: "fe fe-package", type: 'sub', active: false, children:
[
{ path: `${import.meta.env.BASE_URL}/bootstrap/accordian`, type: 'link', title: 'Accordians' },
{ path: `${import.meta.env.BASE_URL}/bootstrap/bootstrapalerts`, type: 'link', title: 'Alerts' },
{ title: 'Avatar', icon: "ti-face-smile", type: 'sub', active: false, children:
[
{ path: `${import.meta.env.BASE_URL}/bootstrap/avatarradius`, type: 'link', title: 'Avatar-Radius' },
{ path: `${import.meta.env.BASE_URL}/bootstrap/avatarsquare`, type: 'link', title: 'Avatar-Square' },
{ path: `${import.meta.env.BASE_URL}/bootstrap/avatarrounded`, type: 'link', title: 'Avatar-Rounded' }
]
},
{ path: `${import.meta.env.BASE_URL}/bootstrap/badgespills`, type: 'link', title: 'BadgesPills' },
]
},