Use the ListWithImages component to display a sequence of items paired with images, arranged in an alternating left-right layout for visual balance and storytelling flow. They provide the following benefits:
Improves readability: Alternating layout breaks monotony and keeps users engaged.
Enhances storytelling: Combines text and visuals to explain features, steps, or benefits clearly.
Flexible use: Works for step-by-step guides, product highlights, or feature overviews.
Preview
Step 1 Setup
Install the Astro UI component library with a single command. Get started instantly without worrying about complex configurations.
Step 2 Configure
Customize themes, tweak components, and integrate easily with your Astro project. Built to adapt to your brand and workflow.
Final step Enjoy
Drop components directly into your Astro pages and enjoy a faster workflow with polished, accessible UI out of the box.
description:'Install the Astro UI component library...',
cta:{
text:'Get Started ->',
href:'/get-started'
}
},
{...},
{...}
]
---
<ListWithImagesitems={listWithImageItems}/>
The component expects an items prop that accepts an array of objects for the list items. Each list item can have the following properties:
badge: Sets a badge above the title. You can use BadgeProps along with a text and icon property to define your badges.
img: Sets the image for the list item. In case the list is situated below the fold, you can set img.lazy to true to lazy load images.
title: Sets the title of the list item. Titles will be rendered as h2 tags, but you can easily change this in the component itself.
description: Sets a description for the list item under the title. Supports HTML.
cta: Displays a button under the description. You can use ButtonProps along with a text and icon property to define your cta.
Badges and Buttons
Badges and buttons are optional for the items, you can also create the component items with only an image, title and description. Regardless of the amount of content, elements will be vertically center-aligned with the image:
Setup
Install the Astro UI component library with a single command. Get started instantly without worrying about complex configurations.
Configure
Customize themes, tweak components, and integrate easily with your Astro project. Built to adapt to your brand and workflow.
Enjoy
Drop components directly into your Astro pages and enjoy a faster workflow with polished, accessible UI out of the box.
Alternate Layout
You can also switch the alternating order of the component by setting the secondary prop to true:
Step 1 Setup
Install the Astro UI component library with a single command. Get started instantly without worrying about complex configurations.
Step 2 Configure
Customize themes, tweak components, and integrate easily with your Astro project. Built to adapt to your brand and workflow.
Final step Enjoy
Drop components directly into your Astro pages and enjoy a faster workflow with polished, accessible UI out of the box.