Composite
ItemsContent
A headline above a grid of items, for feature or FAQ sections.
Default ItemsContent configuration
FAQ
Frequently Asked Questions
Answers to common questions about Astro and this design system.
What is Astro?
Astro is a modern static site builder that delivers lightning-fast websites.
Is Astro fast?
Yes! Astro ships zero JavaScript by default and only loads what you need.
Can I use React/Vue/Svelte?
Astro supports many popular frameworks for building UI components.
Is Astro open source?
Absolutely! Astro is open source and has a growing community.
---
import ItemsContent from '@alfadormx/blocks/composite/ItemsContent.astro';
---
<ItemsContent
headline={{
tagline: 'FAQ',
title: 'Frequently Asked Questions',
subtitle: 'Answers to common questions about Astro and this design system.',
}}
itemsGrid={{
defaultItemConfig: {
orientation: 'horizontal',
icon: { name: 'heroicons:chevron-right', class: 'text-accent' },
},
items: [
{
title: 'What is Astro?',
content: 'Astro is a modern static site builder that delivers lightning-fast websites.',
},
{
title: 'Is Astro fast?',
content: 'Yes! Astro ships zero JavaScript by default and only loads what you need.',
},
{
title: 'Can I use React/Vue/Svelte?',
content: 'Astro supports many popular frameworks for building UI components.',
},
{
title: 'Is Astro open source?',
content: 'Absolutely! Astro is open source and has a growing community.',
},
],
}}
/>Overridden column count and default item icon config
Features
Main Features of this block
This block can be reused to display different sets of items with a headline.
Modern and Professional Design
This block features a clean and modern design that fits well with various website styles.
Responsive and Mobile-Friendly
This block is designed to be fully responsive and works well on all devices, including mobile phones and tablets.
Customizability
This block can be easily customized to fit your specific needs and branding.
Fast and Lightweight
This block is optimized for performance, ensuring fast load times and a smooth user experience.
Easy Integration
This block can be easily integrated into existing Astro projects with minimal effort.
Accessible Design
This block follows best practices for accessibility, ensuring that all users can access and interact with the content.
---
import ItemsContent from '@alfadormx/blocks/composite/ItemsContent.astro';
---
<ItemsContent
headline={{
tagline: 'Features',
title: 'Main Features of this block',
subtitle: 'This block can be reused to display different sets of items with a headline.',
}}
itemsGrid={{
columns: 3,
defaultItemConfig: {
icon: { class: 'bg-accent text-background p-2 rounded-full' },
orientation: 'horizontal',
},
items: [
{
icon: { name: 'heroicons:check-circle' },
title: 'Modern and Professional Design',
content:
'This block features a clean and modern design that fits well with various website styles.',
},
{
icon: { name: 'heroicons:device-phone-mobile' },
title: 'Responsive and Mobile-Friendly',
content:
'This block is designed to be fully responsive and works well on all devices, including mobile phones and tablets.',
},
{
icon: { name: 'heroicons:adjustments-horizontal' },
title: 'Customizability',
content: 'This block can be easily customized to fit your specific needs and branding.',
},
{
icon: { name: 'heroicons:sparkles' },
title: 'Fast and Lightweight',
content:
'This block is optimized for performance, ensuring fast load times and a smooth user experience.',
},
{
icon: { name: 'heroicons:bolt' },
title: 'Easy Integration',
content:
'This block can be easily integrated into existing Astro projects with minimal effort.',
},
{
icon: { name: 'heroicons:shield-check' },
title: 'Accessible Design',
content:
'This block follows best practices for accessibility, ensuring that all users can access and interact with the content.',
},
],
}}
/>Grid with vertical layout and elevated background
Features
Main Features of this block
This block can be reused to display different sets of items with a headline.
Modern and Professional Design
This block features a clean and modern design that fits well with various website styles.
Responsive and Mobile-Friendly
This block is designed to be fully responsive and works well on all devices, including mobile phones and tablets.
Customizability
This block can be easily customized to fit your specific needs and branding.
Fast and Lightweight
This block is optimized for performance, ensuring fast load times and a smooth user experience.
Easy Integration
This block can be easily integrated into existing Astro projects with minimal effort.
Accessible Design
This block follows best practices for accessibility, ensuring that all users can access and interact with the content.
---
import ItemsContent from '@alfadormx/blocks/composite/ItemsContent.astro';
---
<ItemsContent
headline={{
tagline: 'Features',
title: 'Main Features of this block',
subtitle: 'This block can be reused to display different sets of items with a headline.',
}}
itemsGrid={{
columns: 3,
defaultItemConfig: {
orientation: 'vertical',
background: { class: 'bg-elevated rounded-md shadow-xl p-3' },
},
items: [
{
icon: { name: 'flat-color-icons:checkmark' },
title: 'Modern and Professional Design',
content:
'This block features a clean and modern design that fits well with various website styles.',
},
{
icon: { name: 'flat-color-icons:iphone' },
title: 'Responsive and Mobile-Friendly',
content:
'This block is designed to be fully responsive and works well on all devices, including mobile phones and tablets.',
},
{
icon: { name: 'flat-color-icons:settings' },
title: 'Customizability',
content: 'This block can be easily customized to fit your specific needs and branding.',
},
{
icon: { name: 'flat-color-icons:light-at-the-end-of-tunnel' },
title: 'Fast and Lightweight',
content:
'This block is optimized for performance, ensuring fast load times and a smooth user experience.',
},
{
icon: { name: 'flat-color-icons:flash-on' },
title: 'Easy Integration',
content:
'This block can be easily integrated into existing Astro projects with minimal effort.',
},
{
icon: { name: 'flat-color-icons:medium-priority' },
title: 'Accessible Design',
content:
'This block follows best practices for accessibility, ensuring that all users can access and interact with the content.',
},
],
}}
/>API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| container | ContainerProps | — | Configuration for the outer Container wrapping the block (default: {}). |
| headline | HeadlineProps | — | Configuration for the Headline rendered above the items grid (default: {}). |
| itemsGrid | ItemsGridProps | — | Configuration for the ItemsGrid, including columns, items, and default item config (default: { columns: 2, defaultItemConfig: { orientation: 'horizontal' } }). |