---
schema_version: "1"
id: 96ae3e22fa7400ec4f6f74f8180e894d7ac9349ba27f25db445a9353579fbcfa
title: Considerations for Configuring Components for Flows
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/components/components-config-for-flow-screens-tips.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/components-config-for-flow-screens-tips.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: afcd896110e7d1c753b9f294640fd1fae6e021a9d870ed0e4ced743c18222388
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# Considerations for Configuring Components for Flows

Before you configure an Aura component for a flow, determine whether it should be available in flow screens or as flow actions and understand how to map data types between a flow and an Aura component. Then review some considerations for defining attributes and how components behave in flows at runtime.

-   Lightning components in flows must comply with [Lightning Locker](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/security_code.htm) restrictions.
-   Flows that include Lightning components are supported only in [Lightning runtime](https://help.salesforce.com/articleView?id=flow_distribute_runtime.htm).

-   **[Flow Screen Components vs. Flow Action Components](https://developer.salesforce.com/docs/platform/aura-platform/guide/components-config-for-flow-tips-compare.md)**  


    You can make your Aura component available in flow screens or as a flow action. When choosing between the flow interfaces, consider what purpose the component serves in the flow.

-   **[Which Custom Lightning Component Attribute Types Are Supported in Flows?](https://developer.salesforce.com/docs/platform/aura-platform/guide/components-config-for-flow-tips-map.md)**  


    Not all custom Lightning component data types are supported in flows. You can map only these types and their associated collection types between flows and custom Lightning components.

-   **[Design Attribute Considerations for Flow Screen Components and Local Actions](https://developer.salesforce.com/docs/platform/aura-platform/guide/components-config-for-flow-tips-attributes.md)**  


    To expose an attribute in Flow Builder, define a corresponding `design:attribute` in the component bundle's design resource. Keep these guidelines in mind when defining design attributes for flows.

-   **[Runtime Considerations for Flows That Include Aura Components](https://developer.salesforce.com/docs/platform/aura-platform/guide/components-config-for-flow-tips-runtime.md)**  


    Depending on where you run your flow, Aura components may look or behave differently than expected. The flow runtime app that's used for some distribution methods doesn't include all the necessary resources from the Lightning Component framework. When a flow is run from Flow Builder or a direct flow URL (https://yourDomain.my.salesforce.com/flow/MyFlowName), `force` and `lightning` events aren’t handled.


**See Also**  


-   [*Component Library*: lightning:availableForFlowScreens Interface](https://developer.salesforce.com/docs/component-library/bundle/lightning:availableForFlowScreens/documentation)

-   [*Component Library*: lightning:availableForFlowActions Interface](https://developer.salesforce.com/docs/component-library/bundle/lightning:availableForFlowActions/documentation)

-   [*Security for Lightning Components:* Lightning Locker](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/locker_intro.html)

