forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pigment-css][material-ui] Render badge demos (mui#41353)
- Loading branch information
1 parent
0a478bb
commit fff0501
Showing
3 changed files
with
151 additions
and
6 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
apps/pigment-next-app/src/app/material-ui/react-badge/page.tsx
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,72 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import AccessibleBadges from '../../../../../../docs/data/material/components/badges/AccessibleBadges'; | ||
import BadgeMax from '../../../../../../docs/data/material/components/badges/BadgeMax'; | ||
import BadgeOverlap from '../../../../../../docs/data/material/components/badges/BadgeOverlap'; | ||
import BadgeVisibility from '../../../../../../docs/data/material/components/badges/BadgeVisibility'; | ||
import ColorBadge from '../../../../../../docs/data/material/components/badges/ColorBadge'; | ||
import CustomizedBadges from '../../../../../../docs/data/material/components/badges/CustomizedBadges'; | ||
import DotBadge from '../../../../../../docs/data/material/components/badges/DotBadge'; | ||
import ShowZeroBadge from '../../../../../../docs/data/material/components/badges/ShowZeroBadge'; | ||
import SimpleBadge from '../../../../../../docs/data/material/components/badges/SimpleBadge'; | ||
|
||
export default function Badges() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Accessible Badges</h2> | ||
<div className="demo-container"> | ||
<AccessibleBadges /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Max</h2> | ||
<div className="demo-container"> | ||
<BadgeMax /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Overlap</h2> | ||
<div className="demo-container"> | ||
<BadgeOverlap /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Visibility</h2> | ||
<div className="demo-container"> | ||
<BadgeVisibility /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Badge</h2> | ||
<div className="demo-container"> | ||
<ColorBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Badges</h2> | ||
<div className="demo-container"> | ||
<CustomizedBadges /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Dot Badge</h2> | ||
<div className="demo-container"> | ||
<DotBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Show Zero Badge</h2> | ||
<div className="demo-container"> | ||
<ShowZeroBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Simple Badge</h2> | ||
<div className="demo-container"> | ||
<SimpleBadge /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
73 changes: 73 additions & 0 deletions
73
apps/pigment-vite-app/src/pages/material-ui/react-badge.tsx
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,73 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import AccessibleBadges from '../../../../../docs/data/material/components/badges/AccessibleBadges.tsx'; | ||
import BadgeMax from '../../../../../docs/data/material/components/badges/BadgeMax.tsx'; | ||
import BadgeOverlap from '../../../../../docs/data/material/components/badges/BadgeOverlap.tsx'; | ||
import BadgeVisibility from '../../../../../docs/data/material/components/badges/BadgeVisibility.tsx'; | ||
import ColorBadge from '../../../../../docs/data/material/components/badges/ColorBadge.tsx'; | ||
import CustomizedBadges from '../../../../../docs/data/material/components/badges/CustomizedBadges.tsx'; | ||
import DotBadge from '../../../../../docs/data/material/components/badges/DotBadge.tsx'; | ||
import ShowZeroBadge from '../../../../../docs/data/material/components/badges/ShowZeroBadge.tsx'; | ||
import SimpleBadge from '../../../../../docs/data/material/components/badges/SimpleBadge.tsx'; | ||
|
||
export default function Badges() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Badges</h1> | ||
<section> | ||
<h2> Accessible Badges</h2> | ||
<div className="demo-container"> | ||
<AccessibleBadges /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Max</h2> | ||
<div className="demo-container"> | ||
<BadgeMax /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Overlap</h2> | ||
<div className="demo-container"> | ||
<BadgeOverlap /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Badge Visibility</h2> | ||
<div className="demo-container"> | ||
<BadgeVisibility /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Badge</h2> | ||
<div className="demo-container"> | ||
<ColorBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Badges</h2> | ||
<div className="demo-container"> | ||
<CustomizedBadges /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Dot Badge</h2> | ||
<div className="demo-container"> | ||
<DotBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Show Zero Badge</h2> | ||
<div className="demo-container"> | ||
<ShowZeroBadge /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Simple Badge</h2> | ||
<div className="demo-container"> | ||
<SimpleBadge /> | ||
</div> | ||
</section> | ||
</MaterialUILayout> | ||
); | ||
} |
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