Skip to content

Commit

Permalink
[code-infra] Use @mui/docs/HighlightedCodeWithTabs in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Jul 4, 2024
1 parent 53c8624 commit d7ac114
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
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';

0 comments on commit d7ac114

Please sign in to comment.