UNPKG

lightswind

Version:

A collection of beautifully crafted React Components, Blocks & Templates for Modern Developers. Create stunning web applications effortlessly by using our 160+ professional and animated react components.

23 lines (22 loc) 874 B
export interface ChainItem { id: string | number; name: string; icon: any; /** A secondary string line for the item, e.g., a short description or a value. */ details?: string; logo?: string; } interface ChainCarouselProps { /** The list of items to display in the carousel. (REQUIRED) */ items: ChainItem[]; /** The speed of the auto-scroll rotation in milliseconds. */ scrollSpeedMs?: number; /** The number of carousel items visible at once (must be an odd number). */ visibleItemCount?: number; /** Custom class for the main container div. */ className?: string; /** Function to call when a chain is selected from the search dropdown. */ onChainSelect?: (chainId: ChainItem['id'], chainName: string) => void; } export declare const ChainCarousel: React.FC<ChainCarouselProps>; export default ChainCarousel;