Tip!
Consider looking at the Component Best Practices for some tips!src/components/cms-library folder:
Step 1:
src/components/cms-library/index.ts file and export your component from the same file, as demonstrated in the example below.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
src/components/cms-library folder:
Step 1:
import React from 'react';
const CustomComponent = () => {
return (
<div>
{/* Add your component's content here */}
</div>
);
}
export default CustomComponent;
src/components/cms-library/index.ts file and export your component from the same file, as demonstrated in the example below.
// Import your CustomComponent
import CustomComponent from 'path/CustomComponent';
// ...other code
export {
// ...other exports
CustomComponent,
};