-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][ToggleButton] Convert to support CSS extraction (#41782)
- Loading branch information
Showing
5 changed files
with
274 additions
and
110 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
65 changes: 65 additions & 0 deletions
65
apps/pigment-css-next-app/src/app/material-ui/react-toggle-button/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,65 @@ | ||
'use client'; | ||
import * as React from 'react'; | ||
import ColorToggleButton from '../../../../../../docs/data/material/components/toggle-button/ColorToggleButton'; | ||
import CustomizedDividers from '../../../../../../docs/data/material/components/toggle-button/CustomizedDividers'; | ||
import StandaloneToggleButton from '../../../../../../docs/data/material/components/toggle-button/StandaloneToggleButton'; | ||
import ToggleButtonNotEmpty from '../../../../../../docs/data/material/components/toggle-button/ToggleButtonNotEmpty'; | ||
import ToggleButtonSizes from '../../../../../../docs/data/material/components/toggle-button/ToggleButtonSizes'; | ||
import ToggleButtons from '../../../../../../docs/data/material/components/toggle-button/ToggleButtons'; | ||
import ToggleButtonsMultiple from '../../../../../../docs/data/material/components/toggle-button/ToggleButtonsMultiple'; | ||
import VerticalToggleButtons from '../../../../../../docs/data/material/components/toggle-button/VerticalToggleButtons'; | ||
|
||
export default function ToggleButton() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Color Toggle Button</h2> | ||
<div className="demo-container"> | ||
<ColorToggleButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Dividers</h2> | ||
<div className="demo-container"> | ||
<CustomizedDividers /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Standalone Toggle Button</h2> | ||
<div className="demo-container"> | ||
<StandaloneToggleButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Button Not Empty</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonNotEmpty /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Button Sizes</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonSizes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Buttons</h2> | ||
<div className="demo-container"> | ||
<ToggleButtons /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Buttons Multiple</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonsMultiple /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Vertical Toggle Buttons</h2> | ||
<div className="demo-container"> | ||
<VerticalToggleButtons /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
66 changes: 66 additions & 0 deletions
66
apps/pigment-css-vite-app/src/pages/material-ui/react-toggle-button.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,66 @@ | ||
import * as React from 'react'; | ||
import MaterialUILayout from '../../Layout'; | ||
import ColorToggleButton from '../../../../../docs/data/material/components/toggle-button/ColorToggleButton.tsx'; | ||
import CustomizedDividers from '../../../../../docs/data/material/components/toggle-button/CustomizedDividers.tsx'; | ||
import StandaloneToggleButton from '../../../../../docs/data/material/components/toggle-button/StandaloneToggleButton.tsx'; | ||
import ToggleButtonNotEmpty from '../../../../../docs/data/material/components/toggle-button/ToggleButtonNotEmpty.tsx'; | ||
import ToggleButtonSizes from '../../../../../docs/data/material/components/toggle-button/ToggleButtonSizes.tsx'; | ||
import ToggleButtons from '../../../../../docs/data/material/components/toggle-button/ToggleButtons.tsx'; | ||
import ToggleButtonsMultiple from '../../../../../docs/data/material/components/toggle-button/ToggleButtonsMultiple.tsx'; | ||
import VerticalToggleButtons from '../../../../../docs/data/material/components/toggle-button/VerticalToggleButtons.tsx'; | ||
|
||
export default function ToggleButton() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>ToggleButton</h1> | ||
<section> | ||
<h2> Color Toggle Button</h2> | ||
<div className="demo-container"> | ||
<ColorToggleButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Dividers</h2> | ||
<div className="demo-container"> | ||
<CustomizedDividers /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Standalone Toggle Button</h2> | ||
<div className="demo-container"> | ||
<StandaloneToggleButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Button Not Empty</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonNotEmpty /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Button Sizes</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonSizes /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Buttons</h2> | ||
<div className="demo-container"> | ||
<ToggleButtons /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Toggle Buttons Multiple</h2> | ||
<div className="demo-container"> | ||
<ToggleButtonsMultiple /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Vertical Toggle Buttons</h2> | ||
<div className="demo-container"> | ||
<VerticalToggleButtons /> | ||
</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
Oops, something went wrong.