We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed4f89 commit f46e28aCopy full SHA for f46e28a
packages/sandbox/src/components/PreviewDimension.tsx
@@ -13,6 +13,11 @@ export const PreviewDimension: FunctionComponent<{
13
}> = (props) => {
14
const { previewDimension } = props
15
16
+ let customLabel = 'Custom'
17
+ if (previewDimension.tag === 'custom') {
18
+ customLabel += ` (${previewDimension.width})`
19
+ }
20
+
21
return (
22
<FormControl disabled>
23
<FormLabel id="demo-radio-buttons-group-label">
@@ -41,7 +46,7 @@ export const PreviewDimension: FunctionComponent<{
41
46
<FormControlLabel
42
47
value="custom"
43
48
control={<Radio />}
44
- label="Custom"
49
+ label={customLabel}
45
50
/>
51
</RadioGroup>
52
</FormControl>
0 commit comments