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.
Merge branch 'master' into revise-material-ui-breakpoint
- Loading branch information
Showing
13 changed files
with
2,053 additions
and
4,889 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
apps/pigment-next-app/src/app/material-ui/react-switch/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 BasicSwitches from '../../../../../../docs/data/material/components/switches/BasicSwitches'; | ||
import ColorSwitches from '../../../../../../docs/data/material/components/switches/ColorSwitches'; | ||
import ControlledSwitches from '../../../../../../docs/data/material/components/switches/ControlledSwitches'; | ||
import CustomizedSwitches from '../../../../../../docs/data/material/components/switches/CustomizedSwitches'; | ||
import FormControlLabelPosition from '../../../../../../docs/data/material/components/switches/FormControlLabelPosition'; | ||
import SwitchLabels from '../../../../../../docs/data/material/components/switches/SwitchLabels'; | ||
import SwitchesGroup from '../../../../../../docs/data/material/components/switches/SwitchesGroup'; | ||
import SwitchesSize from '../../../../../../docs/data/material/components/switches/SwitchesSize'; | ||
|
||
export default function Switches() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Basic Switches</h2> | ||
<div className="demo-container"> | ||
<BasicSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Switches</h2> | ||
<div className="demo-container"> | ||
<ColorSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Switches</h2> | ||
<div className="demo-container"> | ||
<ControlledSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Switches</h2> | ||
<div className="demo-container"> | ||
<CustomizedSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Form Control Label Position</h2> | ||
<div className="demo-container"> | ||
<FormControlLabelPosition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switch Labels</h2> | ||
<div className="demo-container"> | ||
<SwitchLabels /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switches Group</h2> | ||
<div className="demo-container"> | ||
<SwitchesGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switches Size</h2> | ||
<div className="demo-container"> | ||
<SwitchesSize /> | ||
</div> | ||
</section> | ||
</React.Fragment> | ||
); | ||
} |
66 changes: 66 additions & 0 deletions
66
apps/pigment-vite-app/src/pages/material-ui/react-switch.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 BasicSwitches from '../../../../../docs/data/material/components/switches/BasicSwitches.tsx'; | ||
import ColorSwitches from '../../../../../docs/data/material/components/switches/ColorSwitches.tsx'; | ||
import ControlledSwitches from '../../../../../docs/data/material/components/switches/ControlledSwitches.tsx'; | ||
import CustomizedSwitches from '../../../../../docs/data/material/components/switches/CustomizedSwitches.tsx'; | ||
import FormControlLabelPosition from '../../../../../docs/data/material/components/switches/FormControlLabelPosition.tsx'; | ||
import SwitchLabels from '../../../../../docs/data/material/components/switches/SwitchLabels.tsx'; | ||
import SwitchesGroup from '../../../../../docs/data/material/components/switches/SwitchesGroup.tsx'; | ||
import SwitchesSize from '../../../../../docs/data/material/components/switches/SwitchesSize.tsx'; | ||
|
||
export default function Switches() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Switches</h1> | ||
<section> | ||
<h2> Basic Switches</h2> | ||
<div className="demo-container"> | ||
<BasicSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Color Switches</h2> | ||
<div className="demo-container"> | ||
<ColorSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Controlled Switches</h2> | ||
<div className="demo-container"> | ||
<ControlledSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Customized Switches</h2> | ||
<div className="demo-container"> | ||
<CustomizedSwitches /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Form Control Label Position</h2> | ||
<div className="demo-container"> | ||
<FormControlLabelPosition /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switch Labels</h2> | ||
<div className="demo-container"> | ||
<SwitchLabels /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switches Group</h2> | ||
<div className="demo-container"> | ||
<SwitchesGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Switches Size</h2> | ||
<div className="demo-container"> | ||
<SwitchesSize /> | ||
</div> | ||
</section> | ||
</MaterialUILayout> | ||
); | ||
} |
Oops, something went wrong.