Builder
Symbols
Symbols
Symbols are a powerful tool in Builder.io that allow you to create reusable components that can be used across your site. They are especially useful for creating consistent branding across your site, as well as for easily integrating with third-party services.
Creating a Symbol
A. Using Section Models Entry
- Navigate to Section Models in Builder.io.
- Select the Symbol model.
- Click on the New Entry button & select Symbol.
- Select the targeting icon at the top of the editor.
- Set the targeting url to
/symbol/your-symbol-path. - Click Save & refresh to see the editor loading the entry.
- Drag & Drop the component you want to use as your symbol.
- Added the data you want to display in the symbol (e.g., text, image, etc.).
- Click Save.
B. Using the existing builder page
- Navigate to any page model in Builder.io.
- Open any page in the builder.
- Select the component you want to use as your symbol.
- Right-click on the component and select Convert to Symbol.
The symbol will now be available in the Symbol tab of the Section Models.
Using a Symbol
You can use a symbol in your site by adding it to a page or section. Here's how:
- Navigate to any existing page or section in Builder.io.
- Click on the My Symbols tab.
- Drag & Drop the symbol you want to use.
- Click Save.
Even though symbols are meant to be use across the builder pages, you can also use them in the Frontend. Here's how:
- Select the page you want to use the symbol in.
- Use the
<TsContent model="symbol" path="/symbol/your-symbol-path" />component to render the symbol. - Save the code & refresh the page to see the changes.
Customizing a Symbol
You can customize the appearance of a symbol by editing its properties in the Symbols tab. Here's how:
- Navigate to Section Models in Builder.io.
- Select the Symbol model.
- Click the symbol you want to edit.
- Make your changes.
- Click Save.
Deleting a Symbol
To delete a symbol, follow these steps:
- Navigate to Section Models in Builder.io.
- Select the Symbol model.
- Click the symbol you want to delete.
- Click the three dots in the top right corner of the entry.
- Select Delete.
- Confirm the deletion.
References
- Symbols in Builder.io Video | Docs
- Making a Symbol
- Editing a Symbol