Customizing our Components
Overview
This guide provides a detailed overview of how you can customize the components provided in our template. You can modify the components to suit your requirements and preferences. Whether you're dealing with components in the @core
, components
, or layouts
directories, this document outlines the steps to customize them effectively to meet your needs.
Components in the @core
Directory
Do not make any changes in the @core
, components
, or layouts
directories
directly, unless suggested by our support team. It is the core functionality
of the template which is responsible to run the application. The @core
,
components
, and layouts
directories will receive updates from time to
time. If you make changes directly to these directories, you may lose your
customizations when you update the template.
If you want to customize the components in the @core
, components
, or layouts
directories, you should follow the steps below:
- Create a new component: Create a new component in the
components
directory. You can name the component as per your preference. - Copy the code: Copy the code from the component in the
@core
,components
, orlayouts
directory that you want to customize. - Paste the code: Paste the code into the new component you created in the
components
directory. - Modify the code: Modify the code as per your requirements. You can change the styles, add new functionality, or make any other changes you need.
- Use the new component: Use the new component in your application where you want to apply the customizations.
Example
Let's say you want to customize the Button
component in the @core
directory. Here's how you can do it:
- Copy the
@core/Button
component code. - Create a new folder named
customized
in the@core
,components
, orlayouts
directory. - Create a new file named
Button.js
in thecustomized
folder. - Paste the copied code into the
Button.js
file. - Modify the code as per your requirements.
- Use the
Button
component from thecustomized
folder in your application.
By following these steps, you can customize the components in the @core
, components
, or layouts
directories without losing your customizations when you update the template.
Components in the components
Directory
If you want to customize the components in the components
directory, you can follow the same steps as mentioned above for the @core
directory.
Components in the layouts
Directory
If you want to customize the components in the layouts
directory, you can follow the same steps as mentioned above for the @core
directory.
Conclusion
Customizing the components in our template is a straightforward process. By following the steps outlined in this guide, you can easily modify the components to meet your specific requirements and preferences. Remember to create new components in the components
directory and avoid making changes directly to the @core
, components
, or layouts
directories to ensure that your customizations are preserved when you update the template.