@@ -41,9 +41,7 @@ See also the [Note component](#note).
4141
4242Render an expandable section.
4343
44- <Expandable title = " This is a title" >
45- This is some content
46- </Expandable >
44+ <Expandable title = " This is a title" >This is some content</Expandable >
4745
4846``` markdown {tabTitle:Example}
4947<Expandable title="This is a title">
@@ -110,6 +108,7 @@ You can also highlight diffs using the `diff` language:
110108+ plus one
111109```
112110````
111+
113112If you want to preserve syntax highlighting, you can add ` diff ` metadata to any code block
114113then annotate the diff with ` + ` and ` - ` :
115114
@@ -193,6 +192,7 @@ Attributes:
193192
194193- ` header ` (string) - optional header value to include, rendered as an H2
195194- ` nextPages ` (boolean) - only render pages which come next based on sidebar ordering
195+ - ` exclude ` (string[ ] ) - an array of pages to exclude from the grid. Specify the file name of the page, for example, ` "index" ` for ` index.mdx ` .
196196
197197## PlatformContent
198198
@@ -281,15 +281,11 @@ You can specify multiple features by separating them with a comma:
281281
282282The range visibility will be controlled by the ` OnboardingOptionButtons ` component:
283283
284- ```` jsx diff
284+ ``` jsx diff
285285< OnboardingOptionButtons
286- options= {[
287- ' error-monitoring' ,
288- " profiling" ,
289- " performance" ,
290- ]}
286+ options= {[" error-monitoring" , " profiling" , " performance" ]}
291287/ >
292- ````
288+ ```
293289
294290- ` options ` can either be either an object of this shape:
295291
@@ -300,22 +296,20 @@ The range visibility will be controlled by the `OnboardingOptionButtons` compone
300296 checked : boolean
301297}
302298```
299+
303300or a string (one of these ` id ` s 👆) for convenience when using defaults.
304301
305302<Alert level = " warning" title = " Important" >
306- The underlying implementation relies on the ` onboardingOptions ` metadata in the code blocks to be valid JSON syntax.
303+ The underlying implementation relies on the ` onboardingOptions ` metadata in
304+ the code blocks to be valid JSON syntax.
307305</Alert >
308306
309307- default values: ` checked: false ` and ` disabled: false ` (` true ` for ` error-monitoring ` ).
310308
311309Example (output of the above):
312310
313311<OnboardingOptionButtons
314- options = { [
315- " error-monitoring" ,
316- " performance" ,
317- " profiling" ,
318- ]}
312+ options = { [" error-monitoring" , " performance" , " profiling" ]}
319313 dontStick
320314/>
321315
@@ -367,29 +361,32 @@ Or you can use the `hideForThisOption` prop to hide the content for the selected
367361 Hide this section for `profiling` option.
368362</OnboardingOption>
369363```
370- ``````
364+ ````
371365
372366Example:
367+
373368- toggle the ` performance ` option above to see the effect:
374369
375370 <OnboardingOption optionId = " performance" >
376371
377- ```jsx
378- <OnboardingOption optionId="performance">
379- This code block is wrapped in a `OnboardingOption` component and will only
380- be rendered when the `performance` option is selected.
381- </OnboardingOption>
382- ```
372+ ``` jsx
373+ < OnboardingOption optionId= " performance" >
374+ This code block is wrapped in a ` OnboardingOption` component and will only
375+ be rendered when the ` performance` option is selected.
376+ < / OnboardingOption>
377+ ```
378+
383379 </OnboardingOption >
384380
385381- toggle the ` profiling ` option above to see the effect:
386382
387383 <OnboardingOption optionId = " profiling" hideForThisOption >
388384
389- ```jsx
390- <OnboardingOption optionId="profiling" hideForThisOption>
391- This code block is wrapped in a `OnboardingOption` component and will only
392- be rendered when the `profiling` option is NOT selected.
393- </OnboardingOption>
394- ```
385+ ``` jsx
386+ < OnboardingOption optionId= " profiling" hideForThisOption>
387+ This code block is wrapped in a ` OnboardingOption` component and will only
388+ be rendered when the ` profiling` option is NOT selected.
389+ < / OnboardingOption>
390+ ```
391+
395392 </OnboardingOption >
0 commit comments