Skip to content

[core] Fix duplicate branch reference #45915

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

Merged
merged 1 commit into from
Apr 24, 2025
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ For how-to questions that don't involve making changes to the code base, please

## Examples

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Our documentation features [a collection of example projects](https://github.com/mui/material-ui/tree/master/examples).

Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Use the `theme.applyStyles()` utility to apply styles for a specific mode.

We recommend using this function over checking `theme.palette.mode` to switch between styles as it has more benefits:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

- It can be used with [Pigment CSS](https://github.com/mui/material-ui/tree/master/packages/pigment-css-react), our in-house zero-runtime CSS-in-JS solution.
- It is generally more readable and maintainable.
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/customization/palette/palette.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const theme = createTheme({

{{"demo": "ManuallyProvideCustomColor.js", "defaultCodeOpen": false}}

<!-- #repo-reference -->
<!-- #target-branch-reference -->

If you need to manipulate colors, `@mui/material/styles` provides [a set of utilities](https://github.com/mui/material-ui/blob/master/packages/mui-material/src/styles/index.d.ts#L52-L67) to help with this.
The following example uses the `alpha()` and `getContrastRatio()` utilities to define tokens using opacity:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Official integrations

<!-- #repo-reference -->
<!-- #target-branch-reference -->

The following integration examples are available in the [`/examples`](https://github.com/mui/material-ui/tree/master/examples) folder of the Material UI GitHub repository.
These examples feature Material UI paired with other popular React libraries and frameworks, so you can skip the initial setup steps and jump straight into building.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ For instance, via Google Web Fonts:

You can start using Material UI right away with minimal front-end infrastructure by installing it via CDN, which is a great option for rapid prototyping.

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Follow [this CDN example](https://github.com/mui/material-ui/tree/master/examples/material-ui-via-cdn) to get started.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You don't need to provide any JavaScript polyfill as it manages unsupported brow
| :----- | :------ | :----- | :------------- | :----------- |
| >= 121 | >= 115 | >= 109 | >= 15.4 | >= 15.4 |

<!-- #repo-reference -->
<!-- #target-branch-reference -->

An extensive list can be found in our [.browserlistrc](https://github.com/mui/material-ui/blob/-/.browserslistrc#L12-L27) (check the `stable` entry).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`blog` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react, markdown-to-jsx.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`checkout` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @emotion/styled, @emotion/react.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`dashboard` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react, @mui/x-charts, @mui/x-date-pickers, @mui/x-data-grid, @mui/x-tree-view, dayjs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`marketing-page` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`sign-in-side` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`sign-in` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Usage

<!-- #repo-reference -->
<!-- #target-branch-reference -->

1. Copy these folders (`sign-up` and `shared-theme`) into your project, or one of the [example projects](https://github.com/mui/material-ui/tree/master/examples).
2. Make sure your project has the required dependencies: @mui/material, @mui/icons-material, @emotion/styled, @emotion/react.
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/guides/localization/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The [Data Grid and Data Grid Pro](/x/react-data-grid/) components have their own
| Urdu (Pakistan) | ur-PK | `urPK` |
| Vietnamese | vi-VN | `viVN` |

<!-- #repo-reference -->
<!-- #target-branch-reference -->

You can [find the source](https://github.com/mui/material-ui/blob/master/packages/mui-material/src/locale/index.ts) in the GitHub repository.

Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/guides/typescript/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Minimum configuration

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Material UI requires a minimum version of TypeScript 4.9. Have a look at the [Vite.js with TypeScript](https://github.com/mui/material-ui/tree/master/examples/material-ui-vite-ts) example.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default function GlobalCssSliderDeep() {
By default, Material UI components come with Emotion as their style engine.
If, however, you would like to use styled-components, you can configure your app by following the [styled-components guide](/material-ui/integrations/styled-components/) or starting with one of the example projects:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

- [Create React App with styled-components](https://github.com/mui/material-ui/tree/master/examples/material-ui-cra-styled-components)
- [Create React App with styled-components and TypeScript](https://github.com/mui/material-ui/tree/master/examples/material-ui-cra-styled-components-ts)
Expand Down Expand Up @@ -580,7 +580,7 @@ It works exactly like styled components. You can [use the same guide](/material-

### Setup

<!-- #repo-reference -->
<!-- #target-branch-reference -->

If you are used to Tailwind CSS and want to use it together with the Material UI components, you can start by cloning the [Tailwind CSS](https://github.com/mui/material-ui/tree/master/examples/material-ui-cra-tailwind-ts) example project.
If you use a different framework, or already have set up your project, follow these steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ For TypeScript, you must also update the `tsconfig.json` as shown here:

We provide boilerplate examples of Create React App with Material UI and styled-components in both JavaScript and TypeScript:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

- [Material UI + CRA + styled-components (JavaScript)](https://github.com/mui/material-ui/tree/master/examples/material-ui-cra-styled-components)
- [Material UI + CRA + styled-components (TypeScript)](https://github.com/mui/material-ui/tree/master/examples/material-ui-cra-styled-components-ts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Now, the Button's `backgroundColor`, `borderColor` and text `color` values will
For framework- or language-specific setup instructions, see [CSS theme variables—Usage—Server-side rendering](/material-ui/customization/css-theme-variables/usage/).
For framework or language specific setup, see [this](/material-ui/customization/css-theme-variables/usage/)

<!-- #repo-reference -->
<!-- #target-branch-reference -->

See the complete usage of `createCssVarsProvider` in [Material UI](https://github.com/mui/material-ui/blob/master/packages/mui-material/src/styles/ThemeProviderWithVars.tsx) and [Joy UI](https://github.com/mui/material-ui/blob/master/packages/mui-joy/src/styles/CssVarsProvider.tsx).

Expand Down
2 changes: 1 addition & 1 deletion docs/data/system/getting-started/usage/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Runtime performance takes a hit.
| c. Render 1,000 styled components | `<StyledDiv>` | 181ms |
| d. Render 1,000 Box | `<Box sx={…}>` | 296ms |

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Visit the [benchmark folder](https://github.com/mui/material-ui/tree/master/benchmark/browser) for a reproduction of the metrics above.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/MaterialUIExampleCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Link from '@mui/material/Link';
import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded';
import CloudRoundedIcon from '@mui/icons-material/CloudRounded';

// #repo-reference
// #target-branch-reference
const examples = [
{
name: 'Next.js App Router',
Expand Down
2 changes: 1 addition & 1 deletion docs/src/modules/components/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function fetchNotifications() {
const items = (await import('../../../notifications.json')).default;
return items;
}
// #repo-reference
// #target-branch-reference
const response = await fetch(
'https://raw.githubusercontent.com/mui/material-ui/master/docs/notifications.json',
);
Expand Down
4 changes: 2 additions & 2 deletions examples/joy-ui-cra-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/joy-ui-cra-ts
Expand All @@ -22,7 +22,7 @@ npm start

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/joy-ui-cra-ts)

Expand Down
4 changes: 2 additions & 2 deletions examples/joy-ui-nextjs-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/joy-ui-nextjs-ts
Expand All @@ -24,7 +24,7 @@ Open [http://localhost:3000](http://localhost:3000) with your web browser to see

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/joy-ui-nextjs-ts)

Expand Down
4 changes: 2 additions & 2 deletions examples/joy-ui-vite-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/joy-ui-vite-ts
Expand All @@ -24,7 +24,7 @@ npm run dev

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/joy-ui-vite-ts)

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-styled-components-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Alternatively, to skip this configuration, you can set `skipLibCheck: true` in y

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-cra-styled-components-ts
Expand All @@ -36,7 +36,7 @@ npm start

## CodeSandbox

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Note that CodeSandbox is not supporting react-app-rewired, yet you can [still see the code](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-cra-styled-components-ts).

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-styled-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-cra-styled-components
Expand All @@ -20,7 +20,7 @@ npm start

## CodeSandbox

<!-- #repo-reference -->
<!-- #target-branch-reference -->

Note that CodeSandbox is not supporting react-app-rewired, yet you can [still see the code](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-cra-styled-components).

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-tailwind-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-cra-tailwind-ts
Expand All @@ -20,7 +20,7 @@ npm start

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/material-ui-cra-tailwind-ts)

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-cra-ts
Expand All @@ -20,7 +20,7 @@ npm start

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-cra-ts)

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-cra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-cra
Expand All @@ -20,7 +20,7 @@ npm start

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/p/sandbox/github/mui/material-ui/tree/master/examples/material-ui-cra)

Expand Down
4 changes: 2 additions & 2 deletions examples/material-ui-express-ssr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-express-ssr
Expand All @@ -20,7 +20,7 @@ npm run start

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/material-ui-express-ssr)

Expand Down
2 changes: 1 addition & 1 deletion examples/material-ui-gatsby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-gatsby
Expand Down
6 changes: 3 additions & 3 deletions examples/material-ui-nextjs-pages-router-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Download the example [or clone the repo](https://github.com/mui/material-ui):

<!-- #repo-reference -->
<!-- #target-branch-reference -->

```bash
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-ui-nextjs-pages-router-ts
Expand All @@ -20,7 +20,7 @@ npm run dev

or:

<!-- #repo-reference -->
<!-- #target-branch-reference -->

[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/material-ui-nextjs-pages-router-ts)

Expand All @@ -40,7 +40,7 @@ If you prefer, you can [use styled-components instead](https://mui.com/material-

## The link component

<!-- #repo-reference -->
<!-- #target-branch-reference -->
<!-- #host-reference -->

The [example folder](https://github.com/mui/material-ui/tree/HEAD/examples/material-ui-nextjs-pages-router-ts) provides an adapter for the use of [Next.js's Link component](https://nextjs.org/docs/pages/api-reference/components/link) with Material UI.
Expand Down
Loading
Loading