@@ -156,7 +159,7 @@ export default async function DocPage({ params }: DocPageProps) {
- {doc.toc && (
+ {hasToc && (
diff --git a/components/ads.tsx b/components/ads.tsx
index ad144cb1..09710f6b 100644
--- a/components/ads.tsx
+++ b/components/ads.tsx
@@ -33,5 +33,5 @@ export default function CarbonAds() {
};
}, []);
- return ;
+ return ;
}
diff --git a/content/docs/button/index.mdx b/content/docs/button/index.mdx
index 48cf394b..6b4edfff 100644
--- a/content/docs/button/index.mdx
+++ b/content/docs/button/index.mdx
@@ -1,6 +1,6 @@
---
title: Buttons overview
-description: A collection of buttons for call to actions.
+description: A collection of animated buttons for call to actions and micro-interactions.
author: harimanok_
---
@@ -15,7 +15,7 @@ import AlgoliaButtonBlue from "@/animata/button/algolia-blue-button";
import Duolingo from "@/animata/button/duolingo";
import SlideArrowButton from "@/animata/button/slide-arrow-button";
-
+
```tsx file=/animata/button/work-button.tsx copyId="work-button"
diff --git a/content/docs/text/index.mdx b/content/docs/text/index.mdx
index 84e48df7..a9ba7aba 100644
--- a/content/docs/text/index.mdx
+++ b/content/docs/text/index.mdx
@@ -46,7 +46,7 @@ import UnderlineHoverText from "@/animata/text/underline-hover-text";
import WaveReveal from "@/animata/text/wave-reveal";
import InView from "@/components/in-view";
-
+
Gradient Text
@@ -95,7 +95,7 @@ import InView from "@/components/in-view";
-
+
1000 Stars
diff --git a/content/docs/widget/index.mdx b/content/docs/widget/index.mdx
index b9e7c5e0..9554f6a6 100644
--- a/content/docs/widget/index.mdx
+++ b/content/docs/widget/index.mdx
@@ -36,7 +36,7 @@ import WeeklyProgress from "@/animata/widget/weekly-progress";
## Square
-
+
```tsx file=/animata/widget/cycling.tsx copyId="cycling"