StarForge
Basic

Section

Compound component for structuring page sections with header, title, subtitle, description, content, and footer slots.

Note

All presented components are responsive and compatible with Tailwind CSS. Make sure Tailwind is configured in your project to use them.

Section Layout

A compound component that provides a structured layout for page sections. It wraps your content in a consistent container with optional header, title, subtitle, description, content body, and footer areas. Each sub-component can be used independently or composed together for a complete section block.

Sub-Components

ComponentDescription
Section1.RootOuter wrapper with margin and optional custom classes
Section1.HeaderHeader area with bottom border and spacing
Section1.TitleSection title (h1) with semibold styling
Section1.SubTitleSubtitle (h1) with optional icon support
Section1.DescriptionMuted description paragraph
Section1.ContentMain content body area
Section1.FooterFooter area with flex layout

Props Reference

All sub-components share these base props:

PropTypeDescriptionDefault
childrenReact.ReactNodeContent to render inside the elementrequired
classNamestringAdditional CSS classesundefined

SubTitle also accepts:

PropTypeDescriptionDefault
defaultIconbooleanShow the default chevron-double-right iconundefined
iconReact.ReactNodeCustom icon element to displayundefined

On this page

Built with ❤️ using React, Next.js, TypeScript, and Tailwind CSS