Section
A page section with vertical padding, a centered max width and an optional uppercase label.
<arc-section>Overview
Section wraps one band of a page, like a features block or a pricing table, in a <section> element. It centers its content at --max-width and pads it with --space-3xl above and below and --space-lg at the sides. At 768px and narrower the padding drops to --space-2xl and --space-md.
label adds a small uppercase line above the content, set in --font-label and --text-muted and sized by the --section-title-weight, --section-title-size and --section-title-spacing tokens. It's a <span>, not a heading, so put your own heading in the content.
Use Section on its own in a full-bleed layout, since it centers itself, or inside Container on a page that already has a width limit.
Guidelines
Do
- Keep the label to one or two words
- Give each section an `id` for ScrollSpy and anchor links
- Put Container inside a full-bleed section when the content needs a narrower width
Don't
- Don't use it as a general flex container. It only pads, centers and labels
- Don't put form fields straight into it without a Container to limit their width
Features
- Parts: `base` and `section` on the `<section>`, and `label`
Preview
Usage
<arc-section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</arc-section>import { Section } from '@arclux/arc-ui-react';
export default function Example() {
return (
<Section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</Section>
);
}<script setup>
import { Section } from '@arclux/arc-ui-vue';
</script>
<template>
<Section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</Section>
</template><script>
import { Section } from '@arclux/arc-ui-svelte';
</script>
<Section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</Section>import { Component } from '@angular/core';
import { Section } from '@arclux/arc-ui-angular';
@Component({
imports: [Section],
template: `
<arc-section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</arc-section>
`,
})
export class MyComponent {}import { Section } from '@arclux/arc-ui-solid';
export default function Example() {
return (
<Section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</Section>
);
}import { Section } from '@arclux/arc-ui-preact';
export default function Example() {
return (
<Section label="Features">
<h2>What We Offer</h2>
<p>Section content here.</p>
</Section>
);
}<!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-section — requires section.css + base.css (or arc-ui.css) -->
<div class="arc-section">
<section class="section">
Label
Section
</section>
</div><!-- Auto-generated by @arclux/prism — do not edit manually -->
<!-- arc-section — self-contained, no external CSS needed -->
<style>
@media (max-width: 768px) {
.arc-section .section { padding: 64px 16px; }
}
</style>
<div class="arc-section" style="display: block">
<section class="section" style="width: 100%; max-width: 1120px; margin-inline: auto; padding: 96px 24px; scroll-margin-top: 16px">
Label
Section
</section>
</div>API
labelstring''- Section label displayed in uppercase above content