--- import type { ItemGrid as Props } from '~/types'; import { twMerge } from 'tailwind-merge'; import Button from './Button.astro'; import { Icon } from 'astro-icon/components'; const { items = [], columns, defaultIcon = '', classes = {} } = Astro.props; const { container: containerClass = '', panel: panelClass = '', title: titleClass = '', description: descriptionClass = '', icon: defaultIconClass = 'text-primary', action: actionClass = '', } = classes; --- { items && (
{items.map(({ title, description, icon, callToAction, classes: itemClasses = {} }) => (
{(icon || defaultIcon) && ( )}
{title &&

{title}

} {description && (

)} {callToAction && (

)}
))}
) }