Skip to content

Commit a13faa7

Browse files
authored
Update README.md
1 parent 8ff6d6e commit a13faa7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ And hide it by calling the `hide` method.
8181
```tsx
8282
Xenon.hide();
8383
```
84+
> [!WARNING]
85+
> By default, `<Xenon.Component />` is **visible in all environments**. If you don’t want it to show in certain environments (like **production**) to prevent end users from accessing it, you can hide it with a simple condition. For example:
86+
> ```tsx
87+
> {!isProduction && <Xenon.Component />}
88+
> ```
89+
90+
Alternatively, you can use any approach that restricts access to the component, ensuring only your development team can interact with it.
8491
8592
## Props
8693

0 commit comments

Comments
 (0)