-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][ListItemText] Add slots
and slotProps
#44571
Conversation
slots
and slotProps
slots
and slotProps
slots
and slotProps
slots
and slotProps
Netlify deploy previewListItemText: parsed: +2.84% , gzip: +2.57% Bundle size reportDetails of bundle changes (Toolpad) |
export interface ListItemTextSlots { | ||
/** | ||
* The component that renders the main content. | ||
* @default span |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @default span | |
* The component that renders the primary slot. | |
* @default Typography |
export type ListItemTextSlotsAndSlotProps = CreateSlotsAndSlotProps< | ||
ListItemTextSlots, | ||
{ | ||
primary: SlotProps<React.ElementType<HTMLSpanElement>, {}, ListItemTextOwnerState>; | ||
secondary: SlotProps<React.ElementType<HTMLParagraphElement>, {}, ListItemTextOwnerState>; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's nice to add description to the slotProps
with links to the API page in case it's a another component. The DX is a lot better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
2803c54
to
d1bdbcb
Compare
part of #41281
Not sure about about argos failure, same issue can be seen in other PR's as well
example: https://app.argos-ci.com/mui/material-ui/builds/34017