The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

Configure Your Component for Different Form Factors

Configure a component to display on a Lightning app page when the page is rendered in desktop format (Large), phone format (Small), or both.

In the <targetConfigs> section of the component’s configuration file, use the <supportedFormFactors> tag set to declare which form factors the component supports for a page type.

If you don’t define <supportedFormFactors>, the component supports the form factors that the page type supports. However, we recommend defining <supportedFormFactors> for each page type.

App and record pages support the Large and Small form factors. Home pages support only the Large form factor.

Components on app and record pages can render on both phone and desktop because those pages support both phone and desktop. Components on Home pages can render only on desktop because Home pages support only desktop.

This sample component is supported on three page types: app, record, and Home. On app pages, it’s configured to render only on devices with a Small form factor. When a user views an app page on a device with a Large form factor, the component doesn’t render.

Once a component is in use on a Lightning page, you can only increase the supported form factors for the component, not decrease them.

See Also