Skip to content

Commit a735687

Browse files
committed
format
1 parent 7506eb5 commit a735687

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

packages/styleguide/src/lib/Meta/Deep Controls Add-On.mdx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { Meta } from '@storybook/blocks';
22

33
import { ImageWrapper, LinkTo } from '~styleguide/blocks';
44

5-
65
<Meta title="Meta/Deep Controls Add-On" />
76

87
# Deep Controls Add-On
@@ -50,6 +49,7 @@ type Story = StoryObj<typeof MyComponent>;
5049
```
5150

5251
That's it! The add-on will automatically generate controls for `popoverProps.beak`, `popoverProps.outline`, and `popoverProps.position` based on their inferred types:
52+
5353
<ImageWrapper
5454
src="./meta/deep_controls_default.png"
5555
alt="The Deep Controls add-on in action, with default args for popoverProps."
@@ -95,6 +95,7 @@ type Story = StoryObj<typeof MyComponent>;
9595
```
9696

9797
The controls panel will now show the following:
98+
9899
<ImageWrapper
99100
src="./meta/deep_controls_argTypes.png"
100101
alt="The Deep Controls add-on in action, with nested properties exposed as separate controls."
@@ -156,6 +157,7 @@ argTypes: {
156157
```
157158

158159
This will display:
160+
159161
- `infotip` (the entire object)
160162
- `infotip.info` (individual property)
161163
- `infotip.emphasis` (individual property)
@@ -251,11 +253,15 @@ export default meta;
251253

252254
### Components Using Deep Controls
253255

254-
- <LinkTo id="Atoms/Feedback/Alert">**Alert**</LinkTo> Demonstrates deep controls with default args for `cta`.
256+
- <LinkTo id="Atoms/Feedback/Alert">**Alert**</LinkTo> Demonstrates deep controls
257+
with default args for `cta`.
255258

256-
- <LinkTo id="Molecules/Coachmark">**Coachmark**</LinkTo> Demonstrates deep controls with custom `argTypes` for `popoverProps` with multiple nested properties like `beak`, `position`, `align`, and offsets.
259+
- <LinkTo id="Molecules/Coachmark">**Coachmark**</LinkTo> Demonstrates deep controls
260+
with custom `argTypes` for `popoverProps` with multiple nested properties like
261+
`beak`, `position`, `align`, and offsets.
257262

258-
- <LinkTo id="Atoms/FormElements/FormGroup">**FormGroup**</LinkTo> Uses the reusable `infotipNestedArgTypes` to expose infotip configuration.
263+
- <LinkTo id="Atoms/FormElements/FormGroup">**FormGroup**</LinkTo> Uses the reusable
264+
`infotipNestedArgTypes` to expose infotip configuration.
259265

260266
### Reusable ArgType Modules
261267

packages/styleguide/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
88
"jsxImportSource": "@emotion/react",
9-
"paths": { "~styleguide/blocks": ["./storybook/components/"], "~styleguide/argTypes": ["./storybook/argTypes/"] }
9+
"paths": {
10+
"~styleguide/blocks": ["./storybook/components/"],
11+
"~styleguide/argTypes": ["./storybook/argTypes/"]
12+
}
1013
},
1114
"files": [],
1215
"include": [],

0 commit comments

Comments
 (0)