1. Home
  2. Docs
  3. Mavrix UI templates
  4. Components
  5. Using components without Mavryx template

Using components without Mavryx template

If you do not plan to use the Mavryx template, you still have the option to use its components if needed.

To do this, add the following code to the header of your template:

 <script src="https://assets-dev.mavryx.software/v1/api/core.js" type="module" ></script>

If everything went smoothly, from this point on you can use the components in your template.

<mavryx-component type="application-switcher" ></mavryx-component>

and/or

<mavryx-component type="profile-manager" ></mavryx-component>

Example:

<html>
  <head>
	 <script src="https://assets-dev.mavryx.software/v1/api/core.js" type="module" ></script>
 </head>
 <body>

 <div>
 	<table width="100%" >
 		<tr>
 			<td>Demo</td>
 			<td align="right" ><mavryx-component type="profile-manager" ></mavryx-component></td>
			<td align="right" ><mavryx-component type="application-switcher" ></mavryx-component></td>
		</tr>
	</table>
 </div>

 </body>
 </html>
Was this article helpful to you? No Yes

How can we help?