-
-
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
[docs-infra] Support interfaces for X docs #41069
Conversation
Netlify deploy previewhttps://deploy-preview-41069--material-ui.netlify.app/ Bundle size report |
@@ -155,7 +155,7 @@ type ExpandableApiItemProps = { | |||
isExtendable?: boolean; | |||
note?: string; | |||
sx?: SxProps; | |||
title: string; | |||
title: string | React.ReactNode; |
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.
Allows to add a link to the pricing page when it's a pro or premium feature
@@ -122,6 +122,9 @@ interface PropertiesTableProps { | |||
|
|||
export default function PropertiesTable(props: PropertiesTableProps) { | |||
const { properties } = props; | |||
|
|||
const hasDefaultColumn = properties.some((item) => item.propDefault !== undefined); |
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.
Some interfaces don't have default values for all their attributes. In such case we simply don't show the column
Add some customization of the props element to support the interface display in mui/mui-x#12016
The result can be seen here: https://deploy-preview-12016--material-ui-x.netlify.app/x/api/data-grid/grid-api/