--- // Get heading and content from Astro props const { heading, content } = Astro.props; // Define TypeScript interface for props interface Props { heading?: string; content?: string; } // Define classes for heading and content const headingClasses = 'text-balance text-lg font-bold text-neutral-800 dark:text-neutral-200'; const contentClasses = 'mt-1 text-pretty text-neutral-700 dark:text-neutral-300'; --- {/* The root container that arranges your slot and the heading/content */}
{/* Slot to allow for extensibility of the component */}
{/* Heading of the section */}

{heading}

{/* Content text of the section */}

{content}