diff --git a/web/app/components/base/skeleton/index.tsx b/web/app/components/base/skeleton/index.tsx new file mode 100644 index 0000000000..5f29c22f7c --- /dev/null +++ b/web/app/components/base/skeleton/index.tsx @@ -0,0 +1,47 @@ +import type { ComponentProps, FC } from 'react' +import classNames from '@/utils/classnames' + +type SkeletonProps = ComponentProps<'div'> + +export const SkeletonContanier: FC = (props) => { + const { className, children, ...rest } = props + return ( +
+ {children} +
+ ) +} + +export const SkeletonRow: FC = (props) => { + const { className, children, ...rest } = props + return ( +
+ {children} +
+ ) +} + +export const SkeletonRectangle: FC = (props) => { + const { className, children, ...rest } = props + return ( +
+ {children} +
+ ) +} + +export const SkeletonPoint: FC = () => +
ยท
+ +/** Usage + * + * + * + * + * + * + * + * + * + * + */