Both of them are using lightning-accordion-section you can check more details regarding this tag in this link https://developer.salesforce.com/docs/component-library/bundle/lightning-accordion-section/example
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
I think you can use the lightning__RecordPageEnables a component to be used on a record page in Lightning App Builder in XML and place it on the related tab so that it can be useable in that tab, on placing the lwc on related list it would be visible as below screenshot after drawing and dropping in the correct place:
Hi @Ashish Kumar Yadav - I am expecting similar kind of output but this needs to be in Lightning web components, is there any code/article availble in LWC. Thanks!
Both of them are using lightning-accordion-section you can check more details regarding this tag in this link https://developer.salesforce.com/docs/component-library/bundle/lightning-accordion-section/example
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
>> https://salesforce.stackexchange.com/questions/311081/an-lwc-for-sldss-expandable-section
>> https://www.infallibletechie.com/2020/04/lightning-accordion-expand-and.html
Both of them are using lightning-accordion-section you can check more details regarding this tag in this link https://developer.salesforce.com/docs/component-library/bundle/lightning-accordion-section/example
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
All Answers
I think you can use the lightning__RecordPageEnables a component to be used on a record page in Lightning App Builder in XML and place it on the related tab so that it can be useable in that tab, on placing the lwc on related list it would be visible as below screenshot after drawing and dropping in the correct place:
>> https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_configuration_tags
This link has all the possible targets you can use in the XML you can check this out.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
Please Follow this link you can easily create the section.
https://sfdcmonkey.com/2020/12/02/create-expand-collapse-sections-salesforce-lightning/
if it is work for you please mark as the best answer.
>> https://salesforce.stackexchange.com/questions/311081/an-lwc-for-sldss-expandable-section
>> https://www.infallibletechie.com/2020/04/lightning-accordion-expand-and.html
Both of them are using lightning-accordion-section you can check more details regarding this tag in this link https://developer.salesforce.com/docs/component-library/bundle/lightning-accordion-section/example
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.