Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[material-ui][docs] Revise the Button page #40446

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions docs/data/material/components/buttons/ContainedButtons.js

This file was deleted.

17 changes: 0 additions & 17 deletions docs/data/material/components/buttons/ContainedButtons.tsx

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion docs/data/material/components/buttons/DisableElevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from '@mui/material/Button';
export default function DisableElevation() {
return (
<Button variant="contained" disableElevation>
Disable elevation
Elevation disabled
</Button>
);
}
2 changes: 1 addition & 1 deletion docs/data/material/components/buttons/DisableElevation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from '@mui/material/Button';
export default function DisableElevation() {
return (
<Button variant="contained" disableElevation>
Disable elevation
Elevation disabled
</Button>
);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Button variant="contained" disableElevation>
Disable elevation
Elevation disabled
</Button>
18 changes: 18 additions & 0 deletions docs/data/material/components/buttons/IntroButtons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import Button from '@mui/material/Button';
import DeleteIcon from '@mui/icons-material/Delete';
import CheckIcon from '@mui/icons-material/Check';
import Stack from '@mui/material/Stack';

export default function IntroButtons() {
return (
<Stack direction="row" spacing={2}>
<Button variant="outlined" startIcon={<DeleteIcon />} color="error">
Cancel
</Button>
<Button variant="contained" startIcon={<CheckIcon />} color="success">
Confirm
</Button>
</Stack>
);
}
18 changes: 18 additions & 0 deletions docs/data/material/components/buttons/IntroButtons.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import * as React from 'react';
import Button from '@mui/material/Button';
import DeleteIcon from '@mui/icons-material/Delete';
import CheckIcon from '@mui/icons-material/Check';
import Stack from '@mui/material/Stack';

export default function IntroButtons() {
return (
<Stack direction="row" spacing={2}>
<Button variant="outlined" startIcon={<DeleteIcon />} color="error">
Cancel
</Button>
<Button variant="contained" startIcon={<CheckIcon />} color="success">
Confirm
</Button>
</Stack>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Button variant="outlined" startIcon={<DeleteIcon />} color="error">
Cancel
</Button>
<Button variant="contained" startIcon={<CheckIcon />} color="success">
Confirm
</Button>
17 changes: 0 additions & 17 deletions docs/data/material/components/buttons/OutlinedButtons.js

This file was deleted.

17 changes: 0 additions & 17 deletions docs/data/material/components/buttons/OutlinedButtons.tsx

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions docs/data/material/components/buttons/TextButtons.js

This file was deleted.

13 changes: 0 additions & 13 deletions docs/data/material/components/buttons/TextButtons.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions docs/data/material/components/buttons/TextButtons.tsx.preview

This file was deleted.

Loading