AddonRowActions.jsx
6 days ago
AddonsList.jsx
6 days ago
AllAccessAddonsSummary.jsx
6 days ago
AutoUpdateModal.jsx
6 days ago
DownloadActivateButton.jsx
6 days ago
EmptyState.jsx
6 days ago
FeatureList.jsx
6 days ago
LicenseField.jsx
6 days ago
LicenseItem.jsx
6 days ago
LicenseNotices.jsx
6 days ago
LicenseStatus.jsx
6 days ago
Loader.jsx
6 days ago
PricingModal.jsx
6 days ago
PricingTable.jsx
6 days ago
PricingTableItem.jsx
6 days ago
SitesModal.jsx
6 days ago
FeatureList.jsx
31 lines
| 1 | /** |
| 2 | * External Dependencies |
| 3 | */ |
| 4 | import { Check } from 'lucide-react'; |
| 5 | |
| 6 | /** |
| 7 | * @param {Object} props |
| 8 | * @param {string[]} props.features |
| 9 | * @param {string} [props.className] |
| 10 | */ |
| 11 | export function FeatureList( { features, className = '' } ) { |
| 12 | return ( |
| 13 | <ul className={ `flex flex-col gap-3 ${ className }`.trim() }> |
| 14 | { features.map( ( feature ) => ( |
| 15 | <li |
| 16 | key={ feature } |
| 17 | className="flex items-start gap-3 text-sm leading-snug text-gray-800" |
| 18 | > |
| 19 | <span |
| 20 | className="mt-0.5 inline-flex size-5 shrink-0 items-center justify-center rounded-full border-2 border-gray-400 text-gray-800" |
| 21 | aria-hidden |
| 22 | > |
| 23 | <Check className="size-3" strokeWidth={ 2.5 } /> |
| 24 | </span> |
| 25 | <span>{ feature }</span> |
| 26 | </li> |
| 27 | ) ) } |
| 28 | </ul> |
| 29 | ); |
| 30 | } |
| 31 |