mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 20:40:15 +02:00
20 lines
470 B
TypeScript
20 lines
470 B
TypeScript
import type { SkeletonProps as MantineSkeletonProps } from '@mantine/core';
|
|
|
|
import { Skeleton as MantineSkeleton } from '@mantine/core';
|
|
import styled from 'styled-components';
|
|
|
|
const StyledSkeleton = styled(MantineSkeleton)`
|
|
&::after {
|
|
background: var(--placeholder-bg);
|
|
}
|
|
`;
|
|
|
|
export const Skeleton = ({ ...props }: MantineSkeletonProps) => {
|
|
return (
|
|
<StyledSkeleton
|
|
animate={false}
|
|
{...props}
|
|
/>
|
|
);
|
|
};
|