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.
[material-ui][SvgIcon] Convert to support CSS extraction (mui#41779)
- Loading branch information
1 parent
ca6b5b4
commit c9bef2c
Showing
3 changed files
with
197 additions
and
21 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
apps/pigment-css-next-app/src/app/material-ui/icons/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 CreateSvgIcon from '../../../../../../docs/data/material/components/icons/CreateSvgIcon'; | ||
import FontAwesomeIcon from '../../../../../../docs/data/material/components/icons/FontAwesomeIcon'; | ||
import FontAwesomeIconSize from '../../../../../../docs/data/material/components/icons/FontAwesomeIconSize'; | ||
import FontAwesomeSvgIconDemo from '../../../../../../docs/data/material/components/icons/FontAwesomeSvgIconDemo'; | ||
import Icons from '../../../../../../docs/data/material/components/icons/Icons'; | ||
import SvgIconChildren from '../../../../../../docs/data/material/components/icons/SvgIconChildren'; | ||
import SvgIconsColor from '../../../../../../docs/data/material/components/icons/SvgIconsColor'; | ||
import SvgIconsSize from '../../../../../../docs/data/material/components/icons/SvgIconsSize'; | ||
import SvgMaterialIcons from '../../../../../../docs/data/material/components/icons/SvgMaterialIcons'; | ||
|
||
export default function IconsPage() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Create Svg Icon</h2> | ||
<div className="demo-container"> | ||
<CreateSvgIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Icon</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Icon Size</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeIconSize /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Svg Icon Demo</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeSvgIconDemo /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icons</h2> | ||
<div className="demo-container"> | ||
<Icons /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icon Children</h2> | ||
<div className="demo-container"> | ||
<SvgIconChildren /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icons Color</h2> | ||
<div className="demo-container"> | ||
<SvgIconsColor /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icons Size</h2> | ||
<div className="demo-container"> | ||
<SvgIconsSize /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Material Icons</h2> | ||
<div className="demo-container"> | ||
<SvgMaterialIcons /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
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 CreateSvgIcon from '../../../../../docs/data/material/components/icons/CreateSvgIcon.tsx'; | ||
import FontAwesomeIcon from '../../../../../docs/data/material/components/icons/FontAwesomeIcon.tsx'; | ||
import FontAwesomeIconSize from '../../../../../docs/data/material/components/icons/FontAwesomeIconSize.tsx'; | ||
import FontAwesomeSvgIconDemo from '../../../../../docs/data/material/components/icons/FontAwesomeSvgIconDemo.tsx'; | ||
import Icons from '../../../../../docs/data/material/components/icons/Icons.tsx'; | ||
import SvgIconChildren from '../../../../../docs/data/material/components/icons/SvgIconChildren.tsx'; | ||
import SvgIconsColor from '../../../../../docs/data/material/components/icons/SvgIconsColor.tsx'; | ||
import SvgIconsSize from '../../../../../docs/data/material/components/icons/SvgIconsSize.tsx'; | ||
import SvgMaterialIcons from '../../../../../docs/data/material/components/icons/SvgMaterialIcons.tsx'; | ||
|
||
export default function IconsPage() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Icons</h1> | ||
<section> | ||
<h2> Create Svg Icon</h2> | ||
<div className="demo-container"> | ||
<CreateSvgIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Icon</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeIcon /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Icon Size</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeIconSize /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Font Awesome Svg Icon Demo</h2> | ||
<div className="demo-container"> | ||
<FontAwesomeSvgIconDemo /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Icons</h2> | ||
<div className="demo-container"> | ||
<Icons /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icon Children</h2> | ||
<div className="demo-container"> | ||
<SvgIconChildren /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icons Color</h2> | ||
<div className="demo-container"> | ||
<SvgIconsColor /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Icons Size</h2> | ||
<div className="demo-container"> | ||
<SvgIconsSize /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Svg Material Icons</h2> | ||
<div className="demo-container"> | ||
<SvgMaterialIcons /> | ||
</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