Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix:icon-on-browser-component docs:icon cloud fix:icon-cloud-drag-control (#69)

Satyaprakash Sahu5c64e531b21f
diff --git a/components/landing/hero-client.tsx b/components/landing/hero-client.tsx
index b21582e5..8f278af7 100644
--- a/components/landing/hero-client.tsx
+++ b/components/landing/hero-client.tsx
@@ -137,7 +137,7 @@ export default function HeroClient({ post }: { post: Doc }) {
)}
>
Browse Components
- <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />
+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1 flex-shrink-0" />
</Link>
<Link
href="/docs"
@@ -151,7 +151,7 @@ export default function HeroClient({ post }: { post: Doc }) {
)}
>
Get Started
- <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />
+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1 flex-shrink-0" />
</Link>
</div>
</motion.div>
diff --git a/content/docs/components/icon-cloud.mdx b/content/docs/components/icon-cloud.mdx
index 0b180e82..e79c2251 100644
--- a/content/docs/components/icon-cloud.mdx
+++ b/content/docs/components/icon-cloud.mdx
@@ -28,6 +28,12 @@ components/magicui/icon-cloud.tsx
## Props
+## IconCloud
+Displays a dynamic cloud of icons from the Simple Icons library based on provided slugs.
+| Prop | type | default | description |
+|:----------------:|:-----------------------------------------------:|:---------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------:|
+| iconSlugs | string[] | |An array of icon slugs corresponding to the icons you want to display. Each slug should match a supported icon from the Simple Icons library. |
+
## Cloud
| Prop | type | default | description |
|:--------------:|:-------------------------------------------------:|:-------:|:---------------------------------------------------------------:|
@@ -38,6 +44,7 @@ components/magicui/icon-cloud.tsx
| options | IOptions \| undefined | {} | https://www.goat1000.com/tagcanvas-options.php |
| maxSpeed | int | 0.04 | To adjust the rotation speed in idle state |
| minSpeed | int | 0.02 | To adjust the rotation speed when hovering |
+| dragControl | boolean | false | Enable or disable the ability to drag and interact with the icon cloud. |
## renderSimpleIcon
Used to create a tag for the Cloud component
@@ -56,3 +63,7 @@ Used when you cant statically import simple icons during built time. Calling thi
| Prop | type | default | description |
|:----------------:|:-----------------------------------------------:|:---------:|:--------------------------------------------------------------------------------------------------------------------------------------------------------------:|
| slugs | string[] | | Slugs to fetch svgs and colors for. The return icons may be passed to renderSimpleIcon |
+
+## Credits
+
+- Credits to (https://github.com/teaguestockwell/react-icon-cloud)
\ No newline at end of file
diff --git a/registry/components/magicui/icon-cloud.tsx b/registry/components/magicui/icon-cloud.tsx
index 72b0b33f..555c234e 100644
--- a/registry/components/magicui/icon-cloud.tsx
+++ b/registry/components/magicui/icon-cloud.tsx
@@ -33,6 +33,7 @@ export const cloudProps: Omit<ICloud, "children"> = {
outlineColour: "#0000",
maxSpeed: 0.04,
minSpeed: 0.02,
+ // dragControl: false,
},
};