Custom Lightning Types
Custom Lightning types are JSON-based data types used to define the structure, validation, and user interface for complex data. Use these types in Salesforce applications such as Agentforce, Experience Builder, Prompt Builder, and Flows. This feature provides two primary functions to create a fully customized, branded experience. You can define a data structure by referencing an Apex class or by specifying a new JSON object structure. You can also override the default user interface by creating a LightningTypeBundle that uses editor.json to define the input UI and renderer.json to define the output UI with your own custom Lightning Web Components (LWC).
Key Features
  • Total UI Control
    Override the default user interface for your data. Use editor.json and renderer.json to plug in your own custom Lightning Web Components (LWC), and you can create a fully customized, branded experience for any data interaction.
  • Flexible Schema Definition
    Define your data structure in the way that best fits your needs. You can either reference an existing Apex class as the source of your schema or define a custom JSON object structure by specifying its properties.
  • Full Metadata and Tooling Support
    Manage your custom Lightning types as LightningTypeBundle metadata components. Deploy your bundles by using Metadata API or SF Commands, and include them in first-generation (1GP) and second-generation (2GP) packages as part of a standard development lifecycle.
  • Simplified Setup Management
    Create, preview, update, and delete your custom Lightning types with the new Lightning Types Setup UI. This integrated experience provides a detailed view of all deployed types in your org and simplifies management without requiring the Metadata API.