@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.19 kB
Source Map (JSON)
{"version":3,"file":"Features.mjs","names":["FeatureItem"],"sources":["../../../src/awesome/Features/Features.tsx"],"sourcesContent":["'use client';\n\nimport { memo } from 'react';\n\nimport SpotlightCard from '@/awesome/SpotlightCard';\n\nimport FeatureItem from './FeatureItem';\nimport type { FeaturesProps } from './type';\n\nconst Features = memo<FeaturesProps>(\n ({ items, className, itemClassName, itemStyle, maxWidth = 960, style, ...rest }) => {\n if (!items?.length) return;\n\n return (\n <SpotlightCard\n className={className}\n items={items}\n style={{ maxWidth, ...style }}\n renderItem={(item: any) => (\n <FeatureItem className={itemClassName} key={item.title} style={itemStyle} {...item} />\n )}\n {...rest}\n />\n );\n },\n);\n\nFeatures.displayName = 'Features';\n\nexport default Features;\n"],"mappings":";;;;;;AASA,MAAM,WAAW,MACd,EAAE,OAAO,WAAW,eAAe,WAAW,WAAW,KAAK,OAAO,GAAG,WAAW;CAClF,IAAI,CAAC,OAAO,QAAQ;CAEpB,OACE,oBAAC,eAAD;EACa;EACJ;EACP,OAAO;GAAE;GAAU,GAAG;EAAM;EAC5B,aAAa,SACX,oBAACA,MAAD;GAAa,WAAW;GAAgC,OAAO;GAAW,GAAI;EAAO,GAAzC,KAAK,KAAoC;EAEvF,GAAI;CACL,CAAA;AAEL,CACF;AAEA,SAAS,cAAc"}