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.
Mastering Productivity in a Remote Work Environment
Create a Dedicated Workspace
Setting up a distraction-free workspace is crucial for remote work success. Choose a quiet area, invest in ergonomic furniture, and keep your tools organized to maintain focus and efficiency throughout your workday.
Prioritize Time Management
Effective time management separates top performers from the rest. Use techniques like the Pomodoro method or time-blocking to structure your day, ensuring you balance deep work with necessary breaks to avoid burnout.
Sub-Components
| Component | Description |
|---|---|
Section1.Root | Outer wrapper with margin and optional custom classes |
Section1.Header | Header area with bottom border and spacing |
Section1.Title | Section title (h1) with semibold styling |
Section1.SubTitle | Subtitle (h1) with optional icon support |
Section1.Description | Muted description paragraph |
Section1.Content | Main content body area |
Section1.Footer | Footer area with flex layout |
Props Reference
All sub-components share these base props:
| Prop | Type | Description | Default |
|---|---|---|---|
children | React.ReactNode | Content to render inside the element | required |
className | string | Additional CSS classes | undefined |
SubTitle also accepts:
| Prop | Type | Description | Default |
|---|---|---|---|
defaultIcon | boolean | Show the default chevron-double-right icon | undefined |
icon | React.ReactNode | Custom icon element to display | undefined |
Contribute to Star Forge
v2.2.14