From 1206af1e1d7b770f097d29cb5e7081258278cf1d Mon Sep 17 00:00:00 2001 From: Walidoux Date: Fri, 28 Apr 2023 14:34:46 +0100 Subject: [PATCH] feat(components/design): implement Loader --- src/components/design/Loader/Loader.tsx | 67 +++++++++++++++++++++++++ src/components/design/Loader/index.ts | 1 + 2 files changed, 68 insertions(+) create mode 100644 src/components/design/Loader/Loader.tsx create mode 100644 src/components/design/Loader/index.ts diff --git a/src/components/design/Loader/Loader.tsx b/src/components/design/Loader/Loader.tsx new file mode 100644 index 0000000..ff33d69 --- /dev/null +++ b/src/components/design/Loader/Loader.tsx @@ -0,0 +1,67 @@ +import type { HTMLMotionProps } from 'framer-motion' + +import { AnimateView } from '../../system' + +interface LoaderProps extends HTMLMotionProps<'main'> { + active: boolean +} + +export const Loader: React.FC = ({ active, ...rest }) => { + return ( + + + + + + + + + + + + + + + ) +} diff --git a/src/components/design/Loader/index.ts b/src/components/design/Loader/index.ts new file mode 100644 index 0000000..4e20d2b --- /dev/null +++ b/src/components/design/Loader/index.ts @@ -0,0 +1 @@ +export * from './Loader'