Working with components
Components can render elements on a page, store data in variables, call APIs, and so on. You can think of them as tiny web applications on their own.
Components are composable
An application like the toddle editor contains dozens of API calls, and thousands of variables. Trying to keep all that information in your head at 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.