Marketing sectionsFeatureGridSplit
Searchastronomic.dev# FeatureGridSplit
For a section with an intro: the heading and a line at the start, the features in two columns beside it.
Static: no JavaScript.
## Usage
```astro
import FeatureGridSplit from "@astronomic-dev/ui/components/FeatureGridSplit.astro";
```
## Examples
### What you get
The heading and its line in a start column, the features in two columns beside it, from a 48rem section; stacked below that. The layout follows the room the section has, so in a narrow column it stays stacked.
```astro
---
import FeatureGridSplit from "@astronomic-dev/ui/components/FeatureGridSplit.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set. icon is optional.
import Gauge from "@lucide/astro/icons/gauge";
import LayoutGrid from "@lucide/astro/icons/layout-grid";
import PencilLine from "@lucide/astro/icons/pencil-line";
import ShieldCheck from "@lucide/astro/icons/shield-check";
const features = [
{ title: "Fast pages", text: "Static pages that load at once, on any phone.", icon: Gauge },
{ title: "Easy editing", text: "Your team changes text and images without a developer.", icon: PencilLine },
{ title: "A clear structure", text: "Pages built from a few sections that fit together.", icon: LayoutGrid },
{ title: "Safe by default", text: "No plugins to patch and nothing to break at night.", icon: ShieldCheck },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridSplit heading="What you get" text="Every site we build comes with the same four promises." items={features} />
</div>
```
### In a narrow column
The same section in a 24rem column on a wide page: it follows its own width, not the page, so it stays stacked.
```astro
---
import FeatureGridSplit from "@astronomic-dev/ui/components/FeatureGridSplit.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set. icon is optional.
import Gauge from "@lucide/astro/icons/gauge";
import LayoutGrid from "@lucide/astro/icons/layout-grid";
import PencilLine from "@lucide/astro/icons/pencil-line";
import ShieldCheck from "@lucide/astro/icons/shield-check";
const features = [
{ title: "Fast pages", text: "Static pages that load at once, on any phone.", icon: Gauge },
{ title: "Easy editing", text: "Your team changes text and images without a developer.", icon: PencilLine },
{ title: "A clear structure", text: "Pages built from a few sections that fit together.", icon: LayoutGrid },
{ title: "Safe by default", text: "No plugins to patch and nothing to break at night.", icon: ShieldCheck },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<div class="max-w-sm">
<FeatureGridSplit heading="What you get" text="Every site we build comes with the same four promises." items={features} />
</div>
</div>
```
## Props
### FeatureGridSplit
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | Required. The section heading, in the title role in display type, at the top of the start column. |
| `emphasis` | `boolean` | `false` | Turn one *phrase* in the heading into <em>: exactly two asterisks around text with no space inside, as in "Built for *the long run*". Any other asterisks show as typed. Off by default, so the heading shows as typed. How the <em> looks is the theme's. |
| `mark` | `string` | None | A short mark after the heading, such as "(12)" or "©2026", in small muted type. It sits beside the heading, outside it, so the heading's name stays plain. Shown only with a heading. |
| `markLabel` | `string` | None | What the mark says to a screen reader, such as "12 projects": the mark is then hidden from screen readers and this is read in its place. Without it, the mark is read as written. |
| `text` | `string` | None | One or two sentences under the heading, in the lead role, muted. Shown only with a heading. |
| `headingTag` | `"h2" \| "h3" \| "h4"` | `"h2"` | The heading element. Item titles sit one level under it. |
| `class` | `string` | None | More classes for the root (the <section>, or the <div> around the list without a heading), merged with cn(), so yours win on conflicts. |
| `items` | `{ title, text, icon?: IconComponent }[]` | None | Required. The features. icon is optional: an Astro component (Lucide's, your own SVG component, or another), drawn through Icon at the large size, in the accent color, hidden from a screen reader. |
| Slot | Description |
| --- | --- |
| `eyebrow` | A short line above the heading, such as a Badge. |
Any other attribute goes on the <section>.
## Accessibility
- With a heading, renders a <section> named by it, so it is a region landmark. The heading id is unique on the page.
- The items sit in one list (<ul role="list">), so a screen reader says how many there are.
- Each item title sits one level under the section heading (h2 gives h3). With no heading, it is an h3 unless you set itemHeadingTag.
- The heading comes before the list in the page order, also side by side. Each icon is hidden from a screen reader: the title says what it means.
FeatureGridSplit
FreeFor a section with an intro: the heading and a line at the start, the features in two columns beside it.
- File
- FeatureGridSplit.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 2
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
What you get
The heading and its line in a start column, the features in two columns beside it, from a 48rem section; stacked below that. The layout follows the room the section has, so in a narrow column it stays stacked.
This preview did not load.
main.astro
examples/featuregridsplit/main.astro
---
import FeatureGridSplit from "@astronomic-dev/ui/components/FeatureGridSplit.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set. icon is optional.
import Gauge from "@lucide/astro/icons/gauge";
import LayoutGrid from "@lucide/astro/icons/layout-grid";
import PencilLine from "@lucide/astro/icons/pencil-line";
import ShieldCheck from "@lucide/astro/icons/shield-check";
const features = [
{ title: "Fast pages", text: "Static pages that load at once, on any phone.", icon: Gauge },
{ title: "Easy editing", text: "Your team changes text and images without a developer.", icon: PencilLine },
{ title: "A clear structure", text: "Pages built from a few sections that fit together.", icon: LayoutGrid },
{ title: "Safe by default", text: "No plugins to patch and nothing to break at night.", icon: ShieldCheck },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridSplit heading="What you get" text="Every site we build comes with the same four promises." items={features} />
</div>In a narrow column
The same section in a 24rem column on a wide page: it follows its own width, not the page, so it stays stacked.
This preview did not load.
narrow.astro
examples/featuregridsplit/narrow.astro
---
import FeatureGridSplit from "@astronomic-dev/ui/components/FeatureGridSplit.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set. icon is optional.
import Gauge from "@lucide/astro/icons/gauge";
import LayoutGrid from "@lucide/astro/icons/layout-grid";
import PencilLine from "@lucide/astro/icons/pencil-line";
import ShieldCheck from "@lucide/astro/icons/shield-check";
const features = [
{ title: "Fast pages", text: "Static pages that load at once, on any phone.", icon: Gauge },
{ title: "Easy editing", text: "Your team changes text and images without a developer.", icon: PencilLine },
{ title: "A clear structure", text: "Pages built from a few sections that fit together.", icon: LayoutGrid },
{ title: "Safe by default", text: "No plugins to patch and nothing to break at night.", icon: ShieldCheck },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<div class="max-w-sm">
<FeatureGridSplit heading="What you get" text="Every site we build comes with the same four promises." items={features} />
</div>
</div>Minimal · Light