---
schema_version: "1"
id: e1757b43d0ca353d5d1e5821bc4001accbfc38aab3b6bb93250b70c848281f1e
title: Action Override
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/lightning/actionOverride/aura-action-override.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/aura-action-override.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: aa46e751012bf229417bda4579ab175c8bd1c9bbc1f18fbd4901ea5af5701c79
products:
  - Lightning Component Reference
---
# Action Override

**`lightning:actionOverride`**

Enables a component to be used as an override for a standard action. You can override the View, New, Edit, and Tab standard actions on most standard and all custom components.

**For Use In**

Lightning Experience, Experience Builder Sites, Salesforce Mobile App

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

This interface is a **marker interface**. A marker interface is a signal to the component’s container to add the interface’s behavior to the component. You don’t need to implement any specific methods or attributes in your component, you simply add the interface name to the component’s `implements` attribute.

The `lightning:actionOverride` doesn’t add or require any attributes on components that implement it. Components that implement this interface don’t automatically override any action. You need to manually override relevant actions in Setup.

Only components that implement this interface appear in the _Lightning Component Bundle_ menu of an object action Override Properties panel.

## Example

This example shows the markup required to add the `lightning:actionOverride` interface to a Lightning component.

```html
<aura:component implements="lightning:actionOverride,force:hasRecordId,force:hasSObjectName">
  <lightning:card title="Expense Details">
    <aura:set attribute="actions">
      <lightning:button label="Edit" onclick="{!c.handleEdit}" />
    </aura:set>
    <p class="slds-p-horizontal_small">(expense details go here)</p>
  </lightning:card>
</aura:component>
```

In Lightning Experience, the standard Tab and View actions display as a page, while the standard New and Edit actions display in an overlay panel. When used as action overrides, Aura components that implement the `lightning:actionOverride` interface replace the standard behavior completely. A component used as an action override always displays as a page in Lightning Experience and displays in a popup window in Experience Cloud sites. Your component displays without controls, except for the main Lightning Experience navigation bar. Your component is expected to provide a complete user interface for the action, including navigation or actions beyond the navigation bar.

## See Also

[Override Standard Actions with Aura Components ](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_using_lex_s1_action_overrides.htm)


:::::

:::::tab
![No specifications to show](https://developer.salesforce.com/media/no-specs.png)

:::::

::::::
