Marketing sectionsLogoStrip
Searchastronomic.dev# LogoStrip
To build your own logos layout: client logos or names, with a label or a heading. For a ready layout, use LogoStripRow or LogoStripGrid.
Static: no JavaScript.
## Usage
```astro
import LogoStrip from "@astronomic-dev/ui/components/LogoStrip.astro";
```
## Examples
### Slots
The section is a shell: the eyebrow, the heading and the text always show in that order, then one list of logos. The shell owns each logo (the image at the logo height, or the name as text) and the links; the recipes lay out the list. LogoStripRow and LogoStripGrid are recipes built on it.
```astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import LogoStrip from "@astronomic-dev/ui/components/LogoStrip.astro";
const clients = [
{ name: "Astronomic", href: "#astronomic" },
{ name: "Sample Co." },
{ name: "Sample Studio" },
{ name: "Sample Group" },
{ name: "Sample Labs" },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<LogoStrip heading="Clients" text="Studios and firms we have worked with." items={clients} listClass="flex flex-wrap items-center gap-item gap-x-blocks">
<Badge slot="eyebrow">Trusted by</Badge>
</LogoStrip>
</div>
```
## Props
### LogoStrip
| 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. |
| `align` | `"start" \| "center"` | `"start"` | For recipes. The alignment of the header (SectionHead) only: a centered list needs listClass. |
| `contentClass` | `string` | None | For recipes. Classes for the row that holds the header (or the label) and the list. |
| `headerClass` | `string` | None | For recipes. Classes for the header (SectionHead), or the label. |
| `listClass` | `string` | None | For recipes. Classes for the list of logos, its layout (a wrapping row, or a grid). On its own the list stacks the logos. |
| `itemClass` | `string` | None | For recipes. Classes for each logo's <li>, such as a grid cell. |
| `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.
LogoStrip
FreeTo build your own logos layout: client logos or names, with a label or a heading. For a ready layout, use LogoStripRow or LogoStripGrid.
- File
- LogoStrip.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
Slots
The section is a shell: the eyebrow, the heading and the text always show in that order, then one list of logos. The shell owns each logo (the image at the logo height, or the name as text) and the links; the recipes lay out the list. LogoStripRow and LogoStripGrid are recipes built on it.
This preview did not load.
main.astro
examples/logostrip/main.astro
---
import Badge from "@astronomic-dev/ui/components/Badge.astro";
import LogoStrip from "@astronomic-dev/ui/components/LogoStrip.astro";
const clients = [
{ name: "Astronomic", href: "#astronomic" },
{ name: "Sample Co." },
{ name: "Sample Studio" },
{ name: "Sample Group" },
{ name: "Sample Labs" },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<LogoStrip heading="Clients" text="Studios and firms we have worked with." items={clients} listClass="flex flex-wrap items-center gap-item gap-x-blocks">
<Badge slot="eyebrow">Trusted by</Badge>
</LogoStrip>
</div>Minimal · Light