Articles in this section
Category / Section

How to Set Margin Between Symbol and Text in React Diagram Palettes?

2 mins read

The Syncfusion® React Diagram Symbol Palette provides an option to display a description for symbols.
You can customize the spacing between the symbol and its description using the margin property in the getSymbolInfo function.

Below is a code example of adding a margin between the symbol and its description:

getSymbolInfo={(symbol) => {
               return { description: {
                   text: symbol.annotations[0].content,
                   margin : {top : 40, left : 0, right : 0, bottom :20},
}}; 

Sample: Click Here

Conclusion
I hope you enjoyed learning how to set margin between the symbol and text in React Diagram palettes.
You can refer to our React Diagram feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our React Diagram example to understand how to create and manipulate data. For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied