Hi,
This is really a nice question. Let me answer it 1 by 1:
How do I use my custom components in designing/building an experience fragment?
We can not this directly. As the user who is creating the Experience fragment should not be having rights to configure the allowed components.
Can I create a custom template and use it in creating an experience fragment? Or the last available option is to use a layout container and use it in creating an experience fragment.
Yes, this should be the approach.
Step1:-
We should create an Editable template "Tools> General > Templates" and therein layout container we can configure policies (here we can configure which all component groups to be included or excluded) and later use this templates for creating Experience fragment
Step2:- Enable this template and later use this templates for creating Experience fragment
Step3:- In CRX/de go to /content/experience-fragments and in cq:allowedTemplates add the path of newly created Template in step 1. Now you are good to go. Now when you create
PS:- You can avoid Step 2 and 3 and can directly use We-retail template available. Just change policy as per your need.
Tested now, working fine.
~kautuk