Skip to content

Commit 138b31e

Browse files
devin-ai-integration[bot]bot_apk
andcommitted
Remove unimplemented instance prop from If component docs
Co-Authored-By: bot_apk <apk@cognition.ai>
1 parent a164815 commit 138b31e

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

  • fern/products/docs/pages/component-library/default-components

fern/products/docs/pages/component-library/default-components/if.mdx

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
---
22
title: If
3-
description: Show or hide content based on which instance, product, or version the reader is viewing, or their role if your docs use authentication.
3+
description: Show or hide content based on which product or version the reader is viewing, or their role if your docs use authentication.
44
---
55

66
<Markdown src="/snippets/agent-directive.mdx"/>
77

8-
The `<If>` component lets you show or hide content based on which instance, product, or version the reader is viewing, or their role if your docs use authentication.
8+
The `<If>` component lets you show or hide content based on which product or version the reader is viewing, or their role if your docs use authentication.
99

1010
## Variants
1111

12-
### By instance
13-
14-
Use the `instance` prop to show content only when the reader is viewing a specific [instance](/learn/docs/configuration/site-level-settings#instances-configuration). The values in the `instance` array correspond to the instance names defined in your `docs.yml`.
15-
16-
```jsx Markdown
17-
<If instance={["development"]}>
18-
This content only appears in the development instance.
19-
</If>
20-
21-
<If instance={["production"]}>
22-
This content only appears in the production instance.
23-
</If>
24-
```
25-
2612
### By product
2713

2814
Use the `products` prop to show content only when the reader is viewing a specific [product](/learn/docs/configuration/products). The values in the `products` array correspond to the product slugs defined in your `docs.yml`.
@@ -91,10 +77,6 @@ Use the `not` prop to invert any condition, showing content when the condition d
9177

9278
## Properties
9379

94-
<ParamField path="instance" type="string[]" required={false}>
95-
Show content only when the reader is viewing one of the specified instances. Values correspond to instance names defined in your `docs.yml`.
96-
</ParamField>
97-
9880
<ParamField path="products" type="string[]" required={false}>
9981
Show content only when the reader is viewing one of the specified products. Values correspond to product slugs defined in your `docs.yml`.
10082
</ParamField>

0 commit comments

Comments
 (0)