UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

1 lines 1.19 kB
{"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;AAClF,KAAI,CAAC,OAAO,OAAQ;AAEpB,QACE,oBAAC,eAAD;EACa;EACJ;EACP,OAAO;GAAE;GAAU,GAAG;GAAO;EAC7B,aAAa,SACX,oBAACA,MAAD;GAAa,WAAW;GAAgC,OAAO;GAAW,GAAI;GAAQ,EAA1C,KAAK,MAAqC;EAExF,GAAI;EACJ,CAAA;EAGP;AAED,SAAS,cAAc"}