mui / material-ui

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.
https://mui.com/material-ui/
MIT License
93.19k stars 32.08k forks source link

[JoyUI] [DialogTitle] level prop doesn't accept object #42908

Open rhuanbarreto opened 1 month ago

rhuanbarreto commented 1 month ago

Steps to reproduce

Steps:

  1. <DialogTitle level={{ sm: "h4" }}>

Current behavior

Fails on typescript:

Type '{ sm: string; }' is not assignable to type '"inherit" | keyof TypographySystem | undefined'

Expected behavior

To accept an object as this is the default value described in https://mui.com/joy-ui/api/dialog-title/

Context

To modify the default props by customizing the joy ui theme.

Your environment

System: OS: macOS 14.5 Binaries: Node: 21.7.3 - ~/.proto/shims/node npm: 10.8.0 - ~/.proto/shims/npm pnpm: Not Found Browsers: Chrome: Not Found Edge: Not Found Safari: 17.5

Search keywords: dialogtitle, joyui

DiegoAndai commented 1 month ago

@siriwatknp may I ask you to take a look at this one?

siriwatknp commented 2 weeks ago

Thanks for reporting the issue! Joy UI development is temporarily on hold as the maintainers focus on the next two major releases of Material UI