Components
Components are the basic entity used to build UI. They could be:
- Simple components, they are usually built from a blank file and they provide in general a small part of the UI.
For Example the
Buttoncomponent only provide a button to click and it uses the<button />tag plus some style. - Composed components, they are a combination of one or more simple components or an enanched one.
For example the
SearchResultscomponent use aSelectableVerticalListcomponent inside and adapts it to show search results. - Layouts, they are used as application layouts.
For example the
StableDividedSideBarLayoutcomponent, which is used for this doc, provide the sidebar navigation and the header menu.
Typescript
Typescript has become something we cannot miss on a project. All our components use it, so we encourage its usage on every javascript project.
Anyway svelte let developers choose, so you can always choose to use our typescript components with plain javascript as well.