-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[material-ui][ButtonGroup] Convert to support CSS extraction (#41666)
- Loading branch information
Showing
6 changed files
with
282 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
58 changes: 58 additions & 0 deletions
58
apps/pigment-css-next-app/src/app/material-ui/react-button-group/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 BasicButtonGroup from '../../../../../../docs/data/material/components/button-group/BasicButtonGroup'; | ||
import DisableElevation from '../../../../../../docs/data/material/components/button-group/DisableElevation'; | ||
import GroupOrientation from '../../../../../../docs/data/material/components/button-group/GroupOrientation'; | ||
import GroupSizesColors from '../../../../../../docs/data/material/components/button-group/GroupSizesColors'; | ||
import LoadingButtonGroup from '../../../../../../docs/data/material/components/button-group/LoadingButtonGroup'; | ||
import SplitButton from '../../../../../../docs/data/material/components/button-group/SplitButton'; | ||
import VariantButtonGroup from '../../../../../../docs/data/material/components/button-group/VariantButtonGroup'; | ||
|
||
export default function ButtonGroup() { | ||
return ( | ||
<React.Fragment> | ||
<section> | ||
<h2> Basic Button Group</h2> | ||
<div className="demo-container"> | ||
<BasicButtonGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Disable Elevation</h2> | ||
<div className="demo-container"> | ||
<DisableElevation /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Group Orientation</h2> | ||
<div className="demo-container"> | ||
<GroupOrientation /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Group Sizes Colors</h2> | ||
<div className="demo-container"> | ||
<GroupSizesColors /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Loading Button Group</h2> | ||
<div className="demo-container"> | ||
<LoadingButtonGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Split Button</h2> | ||
<div className="demo-container"> | ||
<SplitButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Variant Button Group</h2> | ||
<div className="demo-container"> | ||
<VariantButtonGroup /> | ||
</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
59 changes: 59 additions & 0 deletions
59
apps/pigment-css-vite-app/src/pages/material-ui/react-button-group.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 BasicButtonGroup from '../../../../../docs/data/material/components/button-group/BasicButtonGroup.tsx'; | ||
import DisableElevation from '../../../../../docs/data/material/components/button-group/DisableElevation.tsx'; | ||
import GroupOrientation from '../../../../../docs/data/material/components/button-group/GroupOrientation.tsx'; | ||
import GroupSizesColors from '../../../../../docs/data/material/components/button-group/GroupSizesColors.tsx'; | ||
import LoadingButtonGroup from '../../../../../docs/data/material/components/button-group/LoadingButtonGroup.tsx'; | ||
import SplitButton from '../../../../../docs/data/material/components/button-group/SplitButton.tsx'; | ||
import VariantButtonGroup from '../../../../../docs/data/material/components/button-group/VariantButtonGroup.tsx'; | ||
|
||
export default function ButtonGroup() { | ||
return ( | ||
<MaterialUILayout> | ||
<h1>Button-group</h1> | ||
<section> | ||
<h2> Basic Button Group</h2> | ||
<div className="demo-container"> | ||
<BasicButtonGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Disable Elevation</h2> | ||
<div className="demo-container"> | ||
<DisableElevation /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Group Orientation</h2> | ||
<div className="demo-container"> | ||
<GroupOrientation /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Group Sizes Colors</h2> | ||
<div className="demo-container"> | ||
<GroupSizesColors /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Loading Button Group</h2> | ||
<div className="demo-container"> | ||
<LoadingButtonGroup /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Split Button</h2> | ||
<div className="demo-container"> | ||
<SplitButton /> | ||
</div> | ||
</section> | ||
<section> | ||
<h2> Variant Button Group</h2> | ||
<div className="demo-container"> | ||
<VariantButtonGroup /> | ||
</div> | ||
</section> | ||
</MaterialUILayout> | ||
); | ||
} |
Oops, something went wrong.