Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): initial documentation for language feature #5837

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fern/pages/docs/components/tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ The Tabs component organizes content into separate tabs that users can switch be
The title displayed in the tab header
</ParamField>

<ParamField path="language" type="string" required={false}>
The language associated with the code block. Any arbitrary string may be used.

When a user selects a tab with a specific language, all other tabs assigned to the same language will automatically sync and switch to match.
</ParamField>

<ParamField path="children" type="string | JSX" required={true}>
The content to be displayed when the tab is selected. Can include text, markdown, and components.
</ParamField>
Expand Down Expand Up @@ -46,4 +52,4 @@ The Tabs component organizes content into separate tabs that users can switch be
```
</CodeBlock>

</Aside>
</Aside>
Loading