mui / mui/base-ui

mergeProps: support custom className merging

Open
#2,674 2 comments 4 reactions 0 assignees View on GitHub
scope: all components type: new feature
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

Right now `mergeProps` just concatenates classNames.

Tailwind users often use `tailwind-merge` or similar to intelligently merge tailwind classnames, which do not work on "left-to-right" precedence order.

It would be advantageous to be able to create a custom version of mergeProps that uses a provided className merging strategy.

## Motivation

Increased ergonomics w/ Tailwind

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.