---
schema_version: "1"
id: 77e3482e5316ef04128bbae929058a738ac8fdc26e9d885af611bf5b986d3a1c
title: Apex-Based Custom Lightning Types
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/lt_apex.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.lt_apex.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 000e0893a26e4cb891041d01d58fae174606c576e2f5e9797443df87b494fba7
description: An Apex-based custom Lightning type uses an Apex class to define its schema. Instead of manually creating fields, you map the type directly to your Apex class structure. This method is ideal when you have a complex data structure already defined in your Apex class code.
products:
  - Salesforce Platform
release: "264"
---
# Apex-Based Custom Lightning Types

An Apex-based custom Lightning type uses an Apex class to define its schema. Instead of manually creating fields, you map the type directly to your Apex class structure. This method is ideal when you have a complex data structure already defined in your Apex class code.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

- **[Change the Default Input Component for an Apex-Based Custom Lightning Type](https://help.salesforce.com/s/articleView?id=platform.lt_change_in_apex.htm&release=264.0.0&type=5)**  
    Customize the user interface by overriding the default component with a custom one tailored to your business needs.
- **[Change the Default Output Component for an Apex-Based Custom Lightning Type](https://help.salesforce.com/s/articleView?id=platform.lt_change_out_apex.htm&release=264.0.0&type=5)**  
    Customize the user interface by overriding the default component with a custom one tailored to your business needs.

#### See Also

- [_Lightning Types Developer Guide_: Apex-Based Custom Lightning Types](https://developer.salesforce.com/docs/platform/lightning-types/guide/lightning-types-apex.html)