Add Support for Custom Devices in the Preview #67753
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
[Type] Enhancement
A suggestion for improvement.
Description:
Currently, the Gutenberg editor provides built-in device previews for Desktop, Mobile, and Tablet. While these are useful, many developers and designers require additional custom devices to reflect specific breakpoints or scenarios. For example, devices like Laptop, MobileLandscape, or even specific resolutions (e.g., 1440px for large desktops) are commonly used in responsive design workflows.
Proposed Solution:
Introduce the ability to add custom devices with their associated breakpoints. A custom device should be defined by:
Alias: A unique identifier for the device (e.g., laptop or mobileLandscape).
Label: A user-friendly name displayed in the device preview menu (e.g., "Laptop" or "Mobile Landscape").
Icon: A visual representation in the device preview menu.
Style Object: Defines the styles and breakpoints for the editor canvas when the device is active.
The text was updated successfully, but these errors were encountered: