-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into box-typemap
- Loading branch information
Showing
144 changed files
with
4,536 additions
and
808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
docs/data/material/components/badges/BadgeMaterialYouPlayground.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import * as React from 'react'; | ||
import MaterialYouUsageDemo from 'docs/src/modules/components/MaterialYouUsageDemo'; | ||
import Badge from '@mui/material-next/Badge'; | ||
import MailIcon from '@mui/icons-material/Mail'; | ||
|
||
export default function BadgeMaterialYouPlayground() { | ||
return ( | ||
<MaterialYouUsageDemo | ||
componentName="Badge" | ||
data={[ | ||
{ | ||
propName: 'badgeContent', | ||
defaultValue: 4, | ||
}, | ||
{ | ||
propName: 'color', | ||
knob: 'select', | ||
options: [ | ||
'error', | ||
'info', | ||
'warning', | ||
'success', | ||
'primary', | ||
'secondary', | ||
'tertiary', | ||
], | ||
defaultValue: 'error', | ||
}, | ||
{ | ||
propName: 'size', | ||
knob: 'select', | ||
options: ['small', 'large'], | ||
defaultValue: 'large', | ||
}, | ||
{ | ||
propName: 'invisible', | ||
knob: 'switch', | ||
defaultValue: false, | ||
}, | ||
]} | ||
renderDemo={({ vertical, ...rest }) => ( | ||
<Badge {...rest}> | ||
<MailIcon color="action" /> | ||
</Badge> | ||
)} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.