Skip to content

[material-ui][Table] slots and slotProps documented properties are not exposed in package #41205

@quibaritaenperdresatrompe

Description

Steps to reproduce

Link to live example: (required)

Steps:

  1. install @mui/material-ui@5.15.10
  2. read the TablePagination API documentation for this version and note that slots and slotProps props have a lot of properties e.g. nextButtonIcon
    image
  3. use the TablePagination component in JSX or override style with theme.components.MuiTablePagination.defaultProps properties
  4. note that only actions or select properties are available
    image

Current behavior

only actions or select properties are available on slots and slotProps props (on TablePagination component)

Expected behavior

nextButtonIcon or previousButtonIcon properties are available on slots and slotProps props (on TablePagination component) as mentioned in the web documentation

Context

e.g. override theme.components.MuiTablePagination.defaultProps.slots.nextButtonIcon

Your environment

npx @mui/envinfo
    System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
  Binaries:
    Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
    npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 120.0.6099.129
  npmPackages:
    @emotion/react: ^11.11.3 => 11.11.3 
    @emotion/styled: ^11.11.0 => 11.11.0 
    @mui/base:  5.0.0-beta.36 
    @mui/core-downloads-tracker:  5.15.10 
    @mui/material: ^5.15.10 => 5.15.10 
    @mui/private-theming:  5.15.9 
    @mui/styled-engine:  5.15.9 
    @mui/system:  5.15.9 
    @mui/types:  7.2.13 
    @mui/utils:  5.15.9 
    @types/react: ^18.2.48 => 18.2.48 
    react: ^18.2.0 => 18.2.0 
    react-dom: ^18.2.0 => 18.2.0 
    typescript: ^5.3.3 => 5.3.3 

Search keywords: TablePagination slots slotProps

Metadata

Metadata

Labels

component: TablePaginationThe React component.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions