mui / mui/material-ui

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

Open
#42,908 2 comments 0 reactions 1 assignee View on GitHub

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:

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.