UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: update feature cards
Dillion Verma76560ff38f1c
diff --git a/components/block-preview.tsx b/components/block-preview.tsxindex 115368df..7f62f3e5 100644--- a/components/block-preview.tsx+++ b/components/block-preview.tsx@@ -1,6 +1,7 @@"use client";import BlockWrapper from "@/components/block-wrapper";+import ComponentWrapper from "@/components/component-wrapper";import { Icons } from "@/components/icons";import PreOrder from "@/components/preorder";import { Badge } from "@/components/ui/badge";@@ -34,7 +35,7 @@ export function BlockPreview({name,children,className,- align = "center",+ align = "start",free = false,scroller = false,...props@@ -151,22 +152,41 @@ export function BlockPreview({)}</div><TabsContent value="preview" className="relative rounded-md">- <BlockWrapper>- <React.Suspense- fallback={- <div className="space-y-4">- <Skeleton className="h-[150px] w-full" />- </div>- }- >- {scroller && (- <div className="max-h-[450px] overflow-y-scroll">- <div className="h-screen">{Preview}</div>- </div>- )}- {!scroller && Preview}- </React.Suspense>- </BlockWrapper>+ {align === "center" ? (+ <ComponentWrapper>+ <React.Suspense+ fallback={+ <div className="space-y-4">+ <Skeleton className="h-[150px] w-full" />+ </div>+ }+ >+ {scroller && (+ <div className="max-h-[450px] overflow-y-scroll">+ <div className="h-screen">{Preview}</div>+ </div>+ )}+ {!scroller && Preview}+ </React.Suspense>+ </ComponentWrapper>+ ) : (+ <BlockWrapper>+ <React.Suspense+ fallback={+ <div className="space-y-4">+ <Skeleton className="h-[150px] w-full" />+ </div>+ }+ >+ {scroller && (+ <div className="max-h-[450px] overflow-y-scroll">+ <div className="h-screen">{Preview}</div>+ </div>+ )}+ {!scroller && Preview}+ </React.Suspense>+ </BlockWrapper>+ )}</TabsContent><TabsContent value="code"><div className="flex flex-col space-y-4">diff --git a/content/docs/components/feature-cards.mdx b/content/docs/components/feature-cards.mdxindex a4b7a5d3..aa0adbbf 100644--- a/content/docs/components/feature-cards.mdx+++ b/content/docs/components/feature-cards.mdx@@ -1,28 +1,28 @@----title: Feature Cards-date: 2023-04-01-description: A list that animates each item in sequence with a delay. Used to showcase notifications or events on your landing page.+title: Animated Feature Cards+date: 2023-04-08+description: A collection of feature cards. Used to showcase features of your app on your landing page.author: dillionvermapublished: truevideo: https://cdn.magicui.design/animated-feature-cards.mp4----<ComponentPreview name="animated-feature-card-1" />+<BlockPreview name="animated-feature-card-1" align="center" />-<ComponentPreview name="animated-feature-card-2" />+<BlockPreview name="animated-feature-card-2" align="center" />-<ComponentPreview name="animated-feature-card-3" />+<BlockPreview name="animated-feature-card-3" align="center" />-<ComponentPreview name="animated-feature-card-4" />+<BlockPreview name="animated-feature-card-4" align="center" />-<ComponentPreview name="animated-feature-card-5" />+<BlockPreview name="animated-feature-card-5" align="center" />-<ComponentPreview name="animated-feature-card-6" />+<BlockPreview name="animated-feature-card-6" align="center" />-{/* <ComponentPreview name="animated-feature-card-7" /> */}+{/* <BlockPreview name="animated-feature-card-7" align="center" /> */}-<ComponentPreview name="animated-feature-card-8" />+<BlockPreview name="animated-feature-card-8" align="center" />-<ComponentPreview name="animated-feature-card-9" />+<BlockPreview name="animated-feature-card-9" align="center" />-<ComponentPreview name="animated-feature-card-10" />\ No newline at end of file+<BlockPreview name="animated-feature-card-10" align="center" />\ No newline at end of file