Skip to content
Prev Previous commit
Next Next commit
Fix DimensionControl readme
  • Loading branch information
aaronrobertshaw committed Dec 15, 2025
commit 05273ecd95aa46762b3676327dd466e1678490ab
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ The component automatically integrates with the theme's dimension size presets d

When a preset is selected, the component returns values in the format:
```
var:preset|dimension-sizes|{slug}
var:preset|dimension|{slug}
```

For example: `var:preset|dimension-sizes|medium`
For example: `var:preset|dimension|medium`

### Theme Configuration

Expand All @@ -86,13 +86,13 @@ To provide dimension presets, add them to your theme's `theme.json`:
"size": "16px"
},
{
"name": "Medium",
"name": "Medium",
"slug": "medium",
"size": "32px"
},
{
"name": "Large",
"slug": "large",
"slug": "large",
"size": "64px"
}
]
Expand All @@ -103,4 +103,4 @@ To provide dimension presets, add them to your theme's `theme.json`:

## Related components

Block Editor components are components that can be used to compose the UI of your block editor. Thus, they can only be used under a [`BlockEditorProvider`](https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/provider/README.md) in the components tree.
Block Editor components are components that can be used to compose the UI of your block editor. Thus, they can only be used under a [`BlockEditorProvider`](https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/provider/README.md) in the components tree.