Marketing sectionsFeatureGridIcons
Searchastronomic.dev# FeatureGridIcons
To show a few strengths side by side, each with a small icon, a title and a short text, on the open page.
Static: no JavaScript.
## Usage
```astro
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
```
## Examples
### Why firms choose us
No cards: each feature is an icon in the accent color over its title and text. As many columns as fit, each at least 15rem. The icons are from Lucide (@lucide/astro); any icon component fits.
```astro
---
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set.
import Code from "@lucide/astro/icons/code";
import Compass from "@lucide/astro/icons/compass";
import LifeBuoy from "@lucide/astro/icons/life-buoy";
import PenTool from "@lucide/astro/icons/pen-tool";
const features = [
{ title: "Strategy", text: "We learn your clients, your offer, and what the site must do.", icon: Compass },
{ title: "Design", text: "A clear look that fits your firm, tested on real content.", icon: PenTool },
{ title: "Build", text: "Fast pages, easy editing, and a clean handover.", icon: Code },
{ title: "Support", text: "Small changes every month, and help when your team needs it.", icon: LifeBuoy },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridIcons heading="Why firms choose us" text="One small team, from the first call to the launch and after." items={features} />
</div>
```
### Everything in one place
Six items, cols={3}: three and three on a wide screen, two and two and two on a tablet, one column on a phone.
```astro
---
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
import Accessibility from "@lucide/astro/icons/accessibility";
import Code from "@lucide/astro/icons/code";
import Moon from "@lucide/astro/icons/moon";
import Palette from "@lucide/astro/icons/palette";
import Smartphone from "@lucide/astro/icons/smartphone";
import Zap from "@lucide/astro/icons/zap";
// Six items with cols={3}: three and three on a wide screen, two and two and two on a tablet, one column on a phone.
const features = [
{ title: "Fast pages", text: "Static HTML first, with only the scripts a part needs.", icon: Zap },
{ title: "One look", text: "Tokens set the colors, type and spacing for every part.", icon: Palette },
{ title: "Dark mode", text: "Every preset has a dark side, checked for contrast.", icon: Moon },
{ title: "Accessible", text: "Real headings, landmarks and focus rings in every part.", icon: Accessibility },
{ title: "Any screen", text: "Parts size to their own box, from a phone to a wide page.", icon: Smartphone },
{ title: "Plain code", text: "Astro and Tailwind files you can read and change.", icon: Code },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridIcons heading="Everything in one place" text="The parts a site needs, in one kit." items={features} cols={3} />
</div>
```
## Props
### FeatureGridIcons
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `heading` | `string` | None | The section heading, in the title role in display type. Without it there is no section and no header: a plain <div> holds only the list. |
| `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. |
| `itemHeadingTag` | `"h2" \| "h3" \| "h4" \| "h5"` | `"h3"` | The item title element when there is no heading. |
| `cols` | `2 \| 3 \| 4` | None | The most columns, so a count such as six splits evenly (3 + 3). One column, two from a 36rem section, then cols from 56rem (4: from 64rem). Unset: as many as fit, each at least 15rem. |
| `items` | `{ title, text, icon: IconComponent }[]` | None | Required. The features. icon is an Astro component: Lucide's (@lucide/astro), your own SVG component, or another. It is drawn through Icon at the large size, in the accent color, and gets aria-hidden="true". The kit has no icon package of its own. |
| Slot | Description |
| --- | --- |
| `eyebrow` | A short line above the heading, such as a Badge. Shown only with a heading. |
Any other attribute goes on the <section>, or on the <div> around the list without a heading.
## Accessibility
- With a heading, renders a <section> named by it, so it is a region landmark. The heading id is unique on the page.
- Without a heading, renders only the list in a plain <div>, with no section and no header (text and the eyebrow are left out). Put your own heading above it.
- 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.
- Each icon is hidden from a screen reader (aria-hidden="true"): the title says what it means.
FeatureGridIcons
FreeTo show a few strengths side by side, each with a small icon, a title and a short text, on the open page.
- File
- FeatureGridIcons.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
Why firms choose us
No cards: each feature is an icon in the accent color over its title and text. As many columns as fit, each at least 15rem. The icons are from Lucide (@lucide/astro); any icon component fits.
This preview did not load.
main.astro
examples/featuregridicons/main.astro
---
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
// Any icon component fits: Lucide's (@lucide/astro), your own SVG component, or another set.
import Code from "@lucide/astro/icons/code";
import Compass from "@lucide/astro/icons/compass";
import LifeBuoy from "@lucide/astro/icons/life-buoy";
import PenTool from "@lucide/astro/icons/pen-tool";
const features = [
{ title: "Strategy", text: "We learn your clients, your offer, and what the site must do.", icon: Compass },
{ title: "Design", text: "A clear look that fits your firm, tested on real content.", icon: PenTool },
{ title: "Build", text: "Fast pages, easy editing, and a clean handover.", icon: Code },
{ title: "Support", text: "Small changes every month, and help when your team needs it.", icon: LifeBuoy },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridIcons heading="Why firms choose us" text="One small team, from the first call to the launch and after." items={features} />
</div>Everything in one place
Six items, cols={3}: three and three on a wide screen, two and two and two on a tablet, one column on a phone.
This preview did not load.
columns.astro
examples/featuregridicons/columns.astro
---
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
import Accessibility from "@lucide/astro/icons/accessibility";
import Code from "@lucide/astro/icons/code";
import Moon from "@lucide/astro/icons/moon";
import Palette from "@lucide/astro/icons/palette";
import Smartphone from "@lucide/astro/icons/smartphone";
import Zap from "@lucide/astro/icons/zap";
// Six items with cols={3}: three and three on a wide screen, two and two and two on a tablet, one column on a phone.
const features = [
{ title: "Fast pages", text: "Static HTML first, with only the scripts a part needs.", icon: Zap },
{ title: "One look", text: "Tokens set the colors, type and spacing for every part.", icon: Palette },
{ title: "Dark mode", text: "Every preset has a dark side, checked for contrast.", icon: Moon },
{ title: "Accessible", text: "Real headings, landmarks and focus rings in every part.", icon: Accessibility },
{ title: "Any screen", text: "Parts size to their own box, from a phone to a wide page.", icon: Smartphone },
{ title: "Plain code", text: "Astro and Tailwind files you can read and change.", icon: Code },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<FeatureGridIcons heading="Everything in one place" text="The parts a site needs, in one kit." items={features} cols={3} />
</div>Minimal · Light