From c7c7ee6e4872ce9c05330cdeb306df886a996a97 Mon Sep 17 00:00:00 2001 From: Kelly Phan Date: Wed, 30 Oct 2024 16:16:26 +0100 Subject: [PATCH] feat: deprecate margin props --- src/components/designSystem/Skeleton.tsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/components/designSystem/Skeleton.tsx b/src/components/designSystem/Skeleton.tsx index 4e93a5c82..4acdb2bb6 100644 --- a/src/components/designSystem/Skeleton.tsx +++ b/src/components/designSystem/Skeleton.tsx @@ -25,8 +25,17 @@ interface SkeletonConnectorProps { width?: never height?: never className?: string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginRight?: number | string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginBottom?: number | string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginTop?: number | string color?: keyof typeof SkeletonColorEnum } @@ -37,8 +46,17 @@ interface SkeletonGenericProps { height?: number | string size?: never className?: string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginRight?: number | string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginBottom?: number | string + /** + * @deprecated Use `className` and TailwindCSS instead + */ marginTop?: number | string color?: keyof typeof SkeletonColorEnum }