text-input.tsx
, common-components
,
ExpZigZagBanner
.
cms-library
or e-commerce
in the base theme, you can follow the directory structure as explained in the Folder Structure documentation. Let’s consider the example of the zig-zag-banner
component:
Step 1 - Navigate to the cms-library
directory in the src
folder.
Step 2 - Create a new folder named zig-zag-banner
using kebab case.
Step 3 - Inside the zig-zag-banner
folder, create a component file named zig-zag-banner.tsx
. This file will contain the JSX code for the component.
zig-zag-banner-controller.tsx
within the zig-zag-banner
folder. This file will handle the business logic of the component.
index.ts
file within the zig-zag-banner
folder. This file will import the component file and export it.
zig-zag-banner
component in the index.ts
file located in the components
directory.
ExpCustomImagerendrer
, ExpLinkParser
specifically designed to assist with image rendering and handling various types of links, regardless of whether they are internal or external. These tools can be seamlessly integrated into your projects, making them easier to manage and ensuring optimal results.