-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][Breadcrumbs] Convert to support CSS extraction (#41496)
- Loading branch information
Showing
3 changed files
with
120 additions
and
2 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
apps/pigment-css-next-app/src/app/material-ui/react-breadcrumbs/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,58 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import ActiveLastBreadcrumb from '../../../../../../docs/data/material/components/breadcrumbs/ActiveLastBreadcrumb'; | ||
import BasicBreadcrumbs from '../../../../../../docs/data/material/components/breadcrumbs/BasicBreadcrumbs'; | ||
import CollapsedBreadcrumbs from '../../../../../../docs/data/material/components/breadcrumbs/CollapsedBreadcrumbs'; | ||
import CustomSeparator from '../../../../../../docs/data/material/components/breadcrumbs/CustomSeparator'; | ||
import CustomizedBreadcrumbs from '../../../../../../docs/data/material/components/breadcrumbs/CustomizedBreadcrumbs'; | ||
import IconBreadcrumbs from '../../../../../../docs/data/material/components/breadcrumbs/IconBreadcrumbs'; | ||
import RouterBreadcrumbs from '../../../../../../docs/data/material/components/breadcrumbs/RouterBreadcrumbs'; | ||
|
||
export default function Breadcrumbs() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Active Last Breadcrumb</h2> | ||
<div className="demo-container"> | ||
<ActiveLastBreadcrumb /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Basic Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<BasicBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Collapsed Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<CollapsedBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Custom Separator</h2> | ||
<div className="demo-container"> | ||
<CustomSeparator /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<CustomizedBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icon Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<IconBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Router Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<RouterBreadcrumbs /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
59 changes: 59 additions & 0 deletions
59
apps/pigment-css-vite-app/src/pages/material-ui/react-breadcrumbs.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,59 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import ActiveLastBreadcrumb from '../../../../../docs/data/material/components/breadcrumbs/ActiveLastBreadcrumb.tsx'; | ||
import BasicBreadcrumbs from '../../../../../docs/data/material/components/breadcrumbs/BasicBreadcrumbs.tsx'; | ||
import CollapsedBreadcrumbs from '../../../../../docs/data/material/components/breadcrumbs/CollapsedBreadcrumbs.tsx'; | ||
import CustomSeparator from '../../../../../docs/data/material/components/breadcrumbs/CustomSeparator.tsx'; | ||
import CustomizedBreadcrumbs from '../../../../../docs/data/material/components/breadcrumbs/CustomizedBreadcrumbs.tsx'; | ||
import IconBreadcrumbs from '../../../../../docs/data/material/components/breadcrumbs/IconBreadcrumbs.tsx'; | ||
import RouterBreadcrumbs from '../../../../../docs/data/material/components/breadcrumbs/RouterBreadcrumbs.tsx'; | ||
|
||
export default function Breadcrumbs() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Breadcrumbs</h1> | ||
<section> | ||
<h2> Active Last Breadcrumb</h2> | ||
<div className="demo-container"> | ||
<ActiveLastBreadcrumb /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Basic Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<BasicBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Collapsed Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<CollapsedBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Custom Separator</h2> | ||
<div className="demo-container"> | ||
<CustomSeparator /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<CustomizedBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icon Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<IconBreadcrumbs /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Router Breadcrumbs</h2> | ||
<div className="demo-container"> | ||
<RouterBreadcrumbs /> | ||
</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