Components are the basic building block of toddle applications. A component can be thought of as a mini application, and multiple components can be combined to build bigger and more complex apps.

Components can be small and simple like this Formula Icon

CleanShot 2023-02-15 at 10.09.02@2x.jpg

Or Large and complex like the HelpCenter in the toddle editor

CleanShot 2023-02-15 at 16.19.00@2x.jpg

Components can be used to break a page down into smaller manageable parts, like we do here on our home page:

CleanShot 2023-02-15 at 16.21.56@2x.jpg

This makes working with large pages much simpler since you don’t have to scroll though all those elements when trying to find the part that you want to edit.

Components can also be used to reuse styling and behavior multiple places in your application, like with toddles button components:

CleanShot 2023-02-15 at 16.25.10@2x(1).jpg

Element tree

Every component contains an element tree it will render on to the page where the component is placed. The component is responsible when and how each element is rendered, as well how each element is styled.

CleanShot 2023-02-15 at 10.04.14@2x.jpg

For more info see:

Content tab