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

[code-infra] Use @mui/docs/HighlightedCodeWithTabs in markdown #42841

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion docs/pages/experiments/docs/codeblock.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pnpm add @mui/material @emotion/react @emotion/styled

### Component version

{{"component": "modules/components/HighlightedCodeWithTabs", "tabs": [{"tab":"JS", "code":"<div>Hello</div>", "language": "jsx"}, {"tab": "TS", "code": "type A = {}"}]}}
{{"component": "@mui/docs/HighlightedCodeWithTabs", "tabs": [{"tab":"JS", "code":"<div>Hello</div>", "language": "jsx"}, {"tab": "TS", "code": "type A = {}"}]}}

## With header path

Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/RichMarkdownElement.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { useTranslate, useUserLanguage } from '@mui/docs/i18n';
import { HighlightedCodeWithTabs } from '@mui/docs/HighlightedCode';
import { HighlightedCodeWithTabs } from '@mui/docs/HighlightedCodeWithTabs';
import { MarkdownElement } from '@mui/docs/MarkdownElement';
import Demo from 'docs/src/modules/components/Demo';

Expand Down
1 change: 0 additions & 1 deletion packages/mui-docs/src/HighlightedCode/index.tsx
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './HighlightedCode';
export * from './HighlightedCodeWithTabs';
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TabsList as TabsListBase } from '@mui/base/TabsList';
import { TabPanel as TabPanelBase } from '@mui/base/TabPanel';
import { Tab as TabBase } from '@mui/base/Tab';
import useLocalStorageState from '@mui/utils/useLocalStorageState';
import { HighlightedCode } from './HighlightedCode';
import { HighlightedCode } from '../HighlightedCode';

export const CodeTabList = styled(TabsListBase)<{
ownerState: { mounted: boolean; contained?: boolean };
Expand Down
2 changes: 2 additions & 0 deletions packages/mui-docs/src/HighlightedCodeWithTabs/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './HighlightedCodeWithTabs';
export { HighlightedCodeWithTabs as default } from './HighlightedCodeWithTabs';
Loading