@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 04:45 UTC

next
ts 44 lines 934 Bytes
Raw
1 import type { CSSProperties, ReactNode } from "react";
2
3 interface LogoImageItem {
4 src: string;
5 srcSet?: string;
6 sizes?: string;
7 width?: number;
8 height?: number;
9 alt?: string;
10 title?: string;
11 href?: string;
12 }
13
14 interface LogoNodeItem {
15 node: ReactNode;
16 ariaLabel?: string;
17 title?: string;
18 href?: string;
19 }
20
21 type LogoItem = LogoImageItem | LogoNodeItem;
22
23 interface LogoLoopProps<Item extends LogoItem = LogoItem> {
24 logos: Item[];
25 speed?: number;
26 direction?: "left" | "right" | "up" | "down";
27 width?: string | number;
28 logoHeight?: number;
29 gap?: number;
30 pauseOnHover?: boolean;
31 hoverSpeed?: number;
32 fadeOut?: boolean;
33 fadeOutColor?: string;
34 scaleOnHover?: boolean;
35 renderItem?: (item: Item, key: string) => ReactNode;
36 ariaLabel?: string;
37 className?: string;
38 style?: CSSProperties;
39 }
40
41 export const LogoLoop: <Item extends LogoItem = LogoItem>(
42 props: LogoLoopProps<Item>
43 ) => ReactNode;
44 export default LogoLoop;