Working with components
Components can render elements on a page, store data in variables, call APIs etc. You can kind of think of them as tiny web applications on their own.
Components are composable
And application like the toddle editor contains dozens of API calls, and thousands of variables. Trying to keep all that information in your head ad one time would be impossible. Using components we can split the editor into hundreds of smaller components, each responsible for a small part or the application.
Creating a new component
Components in toddle follow the naming restrictions of web-components . A component must have at least two parts to their name joined together by a hyphen "-", Component names cannot contain any special characters.