docs/guides/custom-components.md
Extend A2UI by defining custom catalogs that include your own components alongside standard A2UI components.
The A2UI Standard Catalog provides common UI elements (buttons, text fields, etc.), but your application might need specialized components:
Custom catalogs are collections of components that can include:
You register entire catalogs with your client application, not individual components. This allows agents and clients to agree on a shared, extended set of components while maintaining security and type safety.
surfaceUpdate in v0.8, updateComponents in v0.9) using components from that catalog by name.TODO: Add detailed guide for defining custom catalogs for each platform.
Web (Lit / Angular):
Flutter:
See working examples:
Once a catalog is registered on the client, agents can use components from it in surfaceUpdate messages.
The agent specifies which catalog to use via the catalogId in the beginRendering message.
TODO: Add examples of:
Custom components support the same data binding and action mechanisms as standard components:
When creating custom catalogs and components:
TODO: Add detailed security best practices and code examples.