MeaChat
Docs / Content Section

Content Section

The ContentSection component is ideal for detailing specific features, telling a story, or presenting complex information with an accompanying image.

Usage

import ContentSection from '~/components/sections/ContentSection.astro';
import Button from '~/components/ui/Button.astro';

<ContentSection 
  title="Our Mission" 
  image="https://example.com/image.jpg"
>
  <p>We believe in open source software.</p>
  <Button>Learn More</Button>
</ContentSection>

Example

Empowering Developers

Build faster, clearer, and more robust applications with our comprehensive template suite.

  • Pre-built UI components
  • Optimized for performance
  • Accessible by default
Section image

Props

PropTypeDefaultDescription
titlestringRequiredThe main heading of the section.
imagestringRequiredURL of the accompanying image.
imagePosition'left' | 'right''right'Position of the image relative to the content.
imageAltstring'Section image'Alt text for the image.
idstringundefinedOptional ID for deep linking.