Components
Components are the fundamental building blocks of Metabind, defining reusable elements that can be used to create and render content across multiple platforms. Components can be view components that define reusable UI elements or layout components that define the structure for entire content types.Component Types
View Components
Standard UI components for displaying content. Examples:
ProductCard, ArticleParagraph, HeroImageLayout Components
Define structure for entire content types. Examples:
ArticleLayout, ProductPageLayoutKey Concepts
Component Object
Fields
Example View Component
Example Layout Component
TypeScript and Compilation
When a component is saved, the TypeScript code in thecontent field is automatically compiled to JavaScript and stored in the compiled field.
Schema Generation
Components with aproperties() function automatically have their schema extracted: