Newer Version Available

This content describes an older version of this product. View Latest

Use Built-In Mobile Tools and Features

Before you write code for your users on mobile devices, configure your environment and use built-in mobile-ready tools and features.
To develop Lightning web components that are optimized for mobile, follow these prerequisites and processes.
  • Set up your development environment

    We recommend setting up the VS Code editor and the Salesforce DX tools for an end-to-end development experience. You’ll also want to set up a local development server and other tools that can help with mobile development.

  • Install the mobile extensions plug-in for VS Code

    Inspect and preview your components on virtual mobile devices before you deploy them to mobile users.

  • Install SLDS Linter (Beta)

    SLDS Linter (beta) is the latest code analysis tool that helps to prepare your components for use in SLDS 2. SLDS Linter analyzes your code against SLDS 2 rules. It offers suggestions on how to improve your code and make it more future-proof. SLDS Linter can also automatically fix your code and apply those suggestions in bulk across your repository.

    SLDS Linter is a pilot or beta service that is subject to the Beta Services Terms at Agreements - Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of this pilot or beta service is at the Customer's sole discretion.

    Note

After you create a Lightning web component: