Datasets:
|
Download statements/web-material-ui-48554.md from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/statements/web-material-ui-48554.md
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/statements/web-material-ui-48554.md
-
curl -L -o web-material-ui-48554.md https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/statements/web-material-ui-48554.md
703 Bytes
When a consumer passes a data-* attribute through an MUI component slotProps value, TypeScript rejects the value even though the attribute is forwarded to the DOM at runtime. The same typing problem occurs for supported MUI X slotProps. The problem is reproducible in a TypeScript project using MUI Material or MUI X slotProps, such as a Backdrop or DateCalendar slot, with a data-testid or another data-* attribute. The expected behavior is that supported slotProps accept data-* attributes through WithDataAttributes, exposed by @mui/material/utils, when consumers augment DataAttributesOverrides in @mui/utils/types, while preserving the existing strict behavior when no opt-in is configured.