-
-
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.
[Skeleton][material-ui] Add new props to the Skeleton component (#38483)
- Loading branch information
Showing
27 changed files
with
335 additions
and
130 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
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
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,13 @@ | ||
import * as React from 'react'; | ||
import Skeleton from '@mui/material/Skeleton'; | ||
import Stack from '@mui/material/Stack'; | ||
|
||
export default function Shapes() { | ||
return ( | ||
<Stack spacing={1}> | ||
<Skeleton shape="circular" size="box" width={40} height={40} /> | ||
<Skeleton shape="rectangular" size="box" width={210} height={60} /> | ||
<Skeleton shape="rounded" size="box" width={210} height={60} /> | ||
</Stack> | ||
); | ||
} |
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,13 @@ | ||
import * as React from 'react'; | ||
import Skeleton from '@mui/material/Skeleton'; | ||
import Stack from '@mui/material/Stack'; | ||
|
||
export default function Shapes() { | ||
return ( | ||
<Stack spacing={1}> | ||
<Skeleton shape="circular" size="box" width={40} height={40} /> | ||
<Skeleton shape="rectangular" size="box" width={210} height={60} /> | ||
<Skeleton shape="rounded" size="box" width={210} height={60} /> | ||
</Stack> | ||
); | ||
} |
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,3 @@ | ||
<Skeleton shape="circular" size="box" width={40} height={40} /> | ||
<Skeleton shape="rectangular" size="box" width={210} height={60} /> | ||
<Skeleton shape="rounded" size="box" width={210} height={60} /> |
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,14 @@ | ||
import * as React from 'react'; | ||
import Skeleton from '@mui/material/Skeleton'; | ||
import Stack from '@mui/material/Stack'; | ||
|
||
export default function Sizes() { | ||
return ( | ||
<Stack spacing={1} width={210}> | ||
{/* For size="text", adjust the height via font-size */} | ||
<Skeleton size="text" sx={{ fontSize: '1rem' }} /> | ||
{/* For size="box", adjust height based on bounding box */} | ||
<Skeleton size="box" height={40} /> | ||
</Stack> | ||
); | ||
} |
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,14 @@ | ||
import * as React from 'react'; | ||
import Skeleton from '@mui/material/Skeleton'; | ||
import Stack from '@mui/material/Stack'; | ||
|
||
export default function Sizes() { | ||
return ( | ||
<Stack spacing={1} width={210}> | ||
{/* For size="text", adjust the height via font-size */} | ||
<Skeleton size="text" sx={{ fontSize: '1rem' }} /> | ||
{/* For size="box", adjust height based on bounding box */} | ||
<Skeleton size="box" height={40} /> | ||
</Stack> | ||
); | ||
} |
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,4 @@ | ||
{/* For size="text", adjust the height via font-size */} | ||
<Skeleton size="text" sx={{ fontSize: '1rem' }} /> | ||
{/* For size="box", adjust height based on bounding box */} | ||
<Skeleton size="box" height={40} /> |
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
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
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
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
3 changes: 2 additions & 1 deletion
3
docs/data/material/components/skeleton/SkeletonColor.tsx.preview
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<Skeleton | ||
sx={{ bgcolor: 'grey.900' }} | ||
variant="rectangular" | ||
shape="rectangular" | ||
size="box" | ||
width={210} | ||
height={118} | ||
/> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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
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.