[JoyUI] [DialogTitle] level prop doesn't accept object
Open
Nobody has claimed this yet.
on hold
package: joy-ui
scope: dialog
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Steps to reproduce
Steps:
<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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.