Marketing sectionsLogoStripGrid
Searchastronomic.dev# LogoStripGrid
To show many clients in an even grid of cells, with hairlines between them.
Static: no JavaScript.
## Usage
```astro
import LogoStripGrid from "@astronomic-dev/ui/components/LogoStripGrid.astro";
```
## Examples
### Clients in a grid
Equal cells, each at least 10rem, with hairlines between them and none on the outside: one column on a 320px phone, two from a 20rem row, six on a wide page. The Astronomic star and name, and five fictional sample marks, are image logos, in a fixed mid-gray that reads on a light and a dark page (an image cannot take the page color); one opens a new tab. A linked image fades on hover. A name with no image shows as text in the text color (see the centered LogoStripRow example): keep one tone across a strip.
```astro
---
import LogoStripGrid from "@astronomic-dev/ui/components/LogoStripGrid.astro";
import type { UiImage } from "@astronomic-dev/ui/lib/image.ts";
// The Astronomic star and name, and plain sample marks, in a fixed mid-gray: an image logo keeps its own colors, so
// these read on a light and a dark page. The sample companies are fictional, drawn for the examples.
import Astronomic from "../../logos/astronomic-logo-grey.svg";
import Fernhill from "../../logos/sample-fernhill.svg";
import Kestrel from "../../logos/sample-kestrel.svg";
import Oakridge from "../../logos/sample-oakridge.svg";
import Quarry from "../../logos/sample-quarry.svg";
import Tidewater from "../../logos/sample-tidewater.svg";
const image = (svg: { src: string; width: number; height: number }): UiImage => ({ src: svg.src, width: svg.width, height: svg.height, alt: "" });
const clients = [
{ name: "Astronomic", logo: image(Astronomic), href: "#astronomic" },
{ name: "Kestrel", logo: image(Kestrel) },
{ name: "Fernhill", logo: image(Fernhill) },
{ name: "Tidewater", logo: image(Tidewater), href: "https://example.com", target: "_blank" },
{ name: "Quarry", logo: image(Quarry) },
{ name: "Oakridge", logo: image(Oakridge) },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<LogoStripGrid heading="Clients" text="Studios and firms we have worked with." items={clients} />
</div>
```
## Props
### LogoStripGrid
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `LogoStripItem[]` | None | Required. The clients: { name, logo?, href?, target? } (LogoStripItem). logo (a UiImage) shows at the logo height (--ui-logo-h), at most 9rem wide; its alt is ignored, since the alt is always the name. Without a logo, the name shows as text. A linked image fades a little on hover; a linked name turns muted. Only these fields render, so a CMS entry's other fields never reach the page. |
| `heading` | `string` | None | The section heading, in the title role in display type. Without it there is no section: a plain <div> holds the label and 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. |
| `label` | `string` | None | A short label before the list when there is no heading, such as "Recent clients". It names the list. Ignored with a heading. |
| `class` | `string` | None | More classes for the root (the <section>, or the <div> without a heading), merged with cn(), so yours win on conflicts. The root is a named size container (inline-size containment): in a shrink-to-fit parent (inline-flex, a float, fit-content) it collapses, so give it a width there. |
| 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> 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 a plain <div>. Put your own heading above it.
- The logos sit in one list (<ul role="list">), named by the heading or the label, so a screen reader says how many there are.
- A logo's alt is always the item's name.
- A link that opens a new tab gets rel="noopener noreferrer".
- A logo link takes the kit's focus ring.
- An empty items list renders an empty list: leave the section out when there is nothing to show.
LogoStripGrid
FreeTo show many clients in an even grid of cells, with hairlines between them.
- File
- LogoStripGrid.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Clients in a grid
Equal cells, each at least 10rem, with hairlines between them and none on the outside: one column on a 320px phone, two from a 20rem row, six on a wide page. The Astronomic star and name, and five fictional sample marks, are image logos, in a fixed mid-gray that reads on a light and a dark page (an image cannot take the page color); one opens a new tab. A linked image fades on hover. A name with no image shows as text in the text color (see the centered LogoStripRow example): keep one tone across a strip.
This preview did not load.
main.astro
examples/logostripgrid/main.astro
---
import LogoStripGrid from "@astronomic-dev/ui/components/LogoStripGrid.astro";
import type { UiImage } from "@astronomic-dev/ui/lib/image.ts";
// The Astronomic star and name, and plain sample marks, in a fixed mid-gray: an image logo keeps its own colors, so
// these read on a light and a dark page. The sample companies are fictional, drawn for the examples.
import Astronomic from "../../logos/astronomic-logo-grey.svg";
import Fernhill from "../../logos/sample-fernhill.svg";
import Kestrel from "../../logos/sample-kestrel.svg";
import Oakridge from "../../logos/sample-oakridge.svg";
import Quarry from "../../logos/sample-quarry.svg";
import Tidewater from "../../logos/sample-tidewater.svg";
const image = (svg: { src: string; width: number; height: number }): UiImage => ({ src: svg.src, width: svg.width, height: svg.height, alt: "" });
const clients = [
{ name: "Astronomic", logo: image(Astronomic), href: "#astronomic" },
{ name: "Kestrel", logo: image(Kestrel) },
{ name: "Fernhill", logo: image(Fernhill) },
{ name: "Tidewater", logo: image(Tidewater), href: "https://example.com", target: "_blank" },
{ name: "Quarry", logo: image(Quarry) },
{ name: "Oakridge", logo: image(Oakridge) },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<LogoStripGrid heading="Clients" text="Studios and firms we have worked with." items={clients} />
</div>Minimal · Light