@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 1.2 kB
Source Map (JSON)
{"version":3,"file":"Features.mjs","names":["SpotlightCard","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 renderItem={(item: any) => (\n <FeatureItem className={itemClassName} key={item.title} style={itemStyle} {...item} />\n )}\n style={{ maxWidth, ...style }}\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;AAClF,KAAI,CAAC,OAAO,OAAQ;AAEpB,QACE,oBAACA;EACY;EACJ;EACP,aAAa,SACX,oBAACC;GAAY,WAAW;GAAgC,OAAO;GAAW,GAAI;KAAlC,KAAK,MAAqC;EAExF,OAAO;GAAE;GAAU,GAAG;GAAO;EAC7B,GAAI;GACJ;EAGP;AAED,SAAS,cAAc;AAEvB,uBAAe"}