Marketing sectionsContactChannels
Searchastronomic.dev# ContactChannels
To show the ways to reach you, such as sales, support and press, each on a card with one link, with no form.
Static: no JavaScript.
## Usage
```astro
import ContactChannels from "@astronomic-dev/ui/components/ContactChannels.astro";
```
## Examples
### Sales, support and press
One card per channel, each a Lucide icon in the accent color, a title, a line and one link in the card's footer, so the links line up on the bottom edge. As many columns as fit, each at least 16rem: one on a phone, three in a wide row. No form, so no endpoint is needed.
```astro
---
import ContactChannels from "@astronomic-dev/ui/components/ContactChannels.astro";
import Briefcase from "@lucide/astro/icons/briefcase";
import LifeBuoy from "@lucide/astro/icons/life-buoy";
import Newspaper from "@lucide/astro/icons/newspaper";
const channels = [
{ title: "Sales", text: "A new site, a redesign, or a quote for one.", href: "mailto:sales@astronomic.example", label: "Email sales", icon: Briefcase },
{ title: "Support", text: "Questions about a site we built for you, or a theme you bought.", href: "mailto:support@astronomic.example", label: "Email support", icon: LifeBuoy },
{ title: "Press", text: "Interviews, talks and pictures of the studio.", href: "mailto:press@astronomic.example", label: "Email the press team", icon: Newspaper },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<ContactChannels heading="Ways to reach us" text="Write to the people who can help, and you get an answer sooner." items={channels} />
</div>
```
## Props
### ContactChannels
| 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 body. |
| `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. Channel titles sit one level under it. |
| `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. |
| `itemHeadingTag` | `"h2" \| "h3" \| "h4" \| "h5"` | `"h3"` | The title element when there is no heading. With a heading, titles sit one level under it. |
| `items` | `ContactChannelItem[]` | None | Required. The channels, in order: { title, text?, href, label, icon? } (ContactChannelItem). href is a mailto:, a tel: or a page; label is the link text, specific to the channel ("Email support", not "Click here"); icon is an icon component (Lucide's, or your own SVG component), drawn in the accent color. Only these fields reach each card, so a CMS entry's other fields never reach the page. |
| 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 channels are a list (<ul role="list">), so a screen reader says how many there are.
- Each title sits one level under the section heading (h2 gives h3), so a reader can jump from channel to channel. With no heading, it is an h3 unless you set itemHeadingTag.
- The icon is decoration, hidden from screen readers.
- Each card has one link, read by its label: make each label say where it goes ("Email support"), so a list of links never reads "Email, Email, Email".
ContactChannels
FreeTo show the ways to reach you, such as sales, support and press, each on a card with one link, with no form.
- File
- ContactChannels.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
Sales, support and press
One card per channel, each a Lucide icon in the accent color, a title, a line and one link in the card's footer, so the links line up on the bottom edge. As many columns as fit, each at least 16rem: one on a phone, three in a wide row. No form, so no endpoint is needed.
This preview did not load.
main.astro
examples/contactchannels/main.astro
---
import ContactChannels from "@astronomic-dev/ui/components/ContactChannels.astro";
import Briefcase from "@lucide/astro/icons/briefcase";
import LifeBuoy from "@lucide/astro/icons/life-buoy";
import Newspaper from "@lucide/astro/icons/newspaper";
const channels = [
{ title: "Sales", text: "A new site, a redesign, or a quote for one.", href: "mailto:sales@astronomic.example", label: "Email sales", icon: Briefcase },
{ title: "Support", text: "Questions about a site we built for you, or a theme you bought.", href: "mailto:support@astronomic.example", label: "Email support", icon: LifeBuoy },
{ title: "Press", text: "Interviews, talks and pictures of the studio.", href: "mailto:press@astronomic.example", label: "Email the press team", icon: Newspaper },
];
---
<div class="mx-auto max-w-6xl px-6 py-16">
<ContactChannels heading="Ways to reach us" text="Write to the people who can help, and you get an answer sooner." items={channels} />
</div>Minimal · Light