2022-03-28 12:12:27 +03:00
|
|
|
---
|
|
|
|
sidebar_position: 7
|
|
|
|
---
|
|
|
|
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
# Tabs
|
|
|
|
|
|
|
|
Should be a straightforward syntax replacement:
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
|
|
<Tabs className="api-tabs">
|
2022-12-19 23:02:33 +03:00
|
|
|
<TabItem value="console" label="Console">
|
2023-07-21 15:50:50 +03:00
|
|
|
Click the `Reload` button in the `Remote Schema` section on the Hasura
|
|
|
|
Console.
|
2022-12-19 23:02:33 +03:00
|
|
|
</TabItem>
|
|
|
|
<TabItem value="api" label="API">
|
|
|
|
Make a request to the [reload_remote_schema](#) API.
|
|
|
|
</TabItem>
|
|
|
|
</Tabs>;
|
2022-03-28 12:12:27 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
Which should render like below:
|
|
|
|
|
|
|
|
<Tabs className="api-tabs">
|
|
|
|
<TabItem value="console" label="Console">
|
|
|
|
|
2022-12-19 23:02:33 +03:00
|
|
|
Click the `Reload` button in the `Remote Schema` section on the Hasura Console.
|
2022-03-28 12:12:27 +03:00
|
|
|
|
|
|
|
</TabItem>
|
|
|
|
<TabItem value="api" label="API">
|
|
|
|
|
|
|
|
Make a request to the [reload_remote_schema](#) API.
|
|
|
|
|
|
|
|
</TabItem>
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
:::caution Adding Markdown as React Component Children
|
|
|
|
|
|
|
|
For Docusaurus to parse markdown correctly when added as children of react components (provided by docusaurus).
|
|
|
|
There should be an empty line before and after the content itself. AT instances parser still fails due to indentation.
|
|
|
|
|
|
|
|
So, always start the markdown content at beginning of line and always leave an empty line before and after.
|
|
|
|
Do not worry about the indentation for Components - the extra lines would make it good enough for readability.
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
|
|
|
:::info
|
|
|
|
|
|
|
|
Please read more about Tabs usage and syntax in docusaurus [Tabs docs](https://docusaurus.io/docs/markdown-features/tabs).
|
|
|
|
|
|
|
|
:::
|