Open mogrady88 opened 3 months ago
Thanks for reporting the issue.
Hey @mogrady88, what are you trying to achieve specifically?
Here's an example of how to use TablePagination
's slotProps: https://stackblitz.com/edit/react-xvabij?file=Demo.tsx, to provide props to slotProps.select
.
Which is documented here: https://mui.com/material-ui/api/table-pagination/#table-pagination-prop-slotProps
Hey Diego. That slot you're using is select
. Im looking at selectLabel
specifically. We need to style it to look like one of our Typography variants but those props arent passed to the appropriate element
Steps to reproduce
Link to live example: (required)
https://mui.com/material-ui/react-pagination/#table-pagination
Steps:
selectLabel: { 'aria-label': 'LABEL' },
This occurs for both the
slots
andslotProps
entries ofstepLabel
.Current behavior
stepLabel
is present in the source code but it doesn't go anywhere. Adding thatslot
/slotProp
doesnt affect the component.Expected behavior
stepLabel
is available inslots
/slotProps
and will affect the render ofTablePagination
Context
We're trying to use a
Typography
component where this label is so it matches UX designsYour environment
``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ```npx @mui/envinfo
Search keywords: TablePagination stepLabel