Blocks can now set a minimum width natively
v7.1
WordPress 7.1 introduces a minWidth dimension block support, letting blocks opt in to setting a minimum width. This follows the same pattern as the existing minHeight support.
GitHub issue: #76525 | PR: #76949
Background
Blocks already support several dimension properties: height, minHeight, and width. There was no matching control for a minimum width. Setting a floor on a block’s width is a common CSS need. For example, you may want a container or layout element to stay usable and not collapse below a certain size on smaller viewports.
Until now, achieving this required custom CSS or a custom block style, since the design tools did not expose a min-width option. This release handles it natively through a new block support.
What changed
A new minWidth feature is registered under the existing dimensions block support. When a block opts in, a “Minimum width” control appears in the Dimensions panel, alongside the existing minimum height control. The value is applied as the CSS min-width property, and it supports dimension presets (dimensionSizes) where a theme provides them.
How to use it
A block opts in through its block.json supports, the same way it opts in to minHeight:
{
"supports": {
"dimensions": {
"minWidth": true
}
}
}
To enable the setting for all blocks that support it, use theme.json. You can turn it on directly, or through Appearance Tools:
{
"settings": {
"dimensions": {
"minWidth": true
}
}
}
You can also set a value in theme.json, either globally or per block:
{
"styles": {
"dimensions": {
"minWidth": "400px"
},
"blocks": {
"core/group": {
"dimensions": {
"minWidth": "400px"
}
}
}
}
}
If the active theme defines dimensionSizes presets, the control offers those presets, and selecting one applies the matching --wp--preset--dimension--{slug} custom property.
Where the control appears
The minimum width control follows the same visibility rules as other optional design tools:
- In the block inspector, the control is not shown by default. A block must opt in through
__experimentalDefaultControlsto show it automatically. Otherwise, you reveal it from the panel’s options menu (the three-dots menu on the Dimensions panel header). - In Global Styles (Site Editor), the control is shown by default.
Block-level values set in the editor override the theme defaults, following the same cascade as other block supports.
Backwards compatibility
These are additive changes. No existing blocks are broken, and no action is required for most blocks and themes. Blocks that do not opt in behave exactly as before. Themes that do not enable the setting see no change.
Summary
Layer
Key
block.json support
supports.dimensions.minWidth
theme.json setting
settings.dimensions.minWidth
theme.json style
styles.dimensions.minWidth
CSS property
min-width
Preset source
dimensionSizes (--wp--preset--dimension--{slug})
Further Reading
Fetched July 26, 2026
