Data displayEyebrow
Searchastronomic.dev# Eyebrow
For a short label above a heading, like the topic of a section, with an optional small icon.
Static: no JavaScript.
## Usage
```astro
import Eyebrow from "@astronomic-dev/ui/components/Eyebrow.astro";
```
## Examples
### Above a heading
A plain label with a marker on its own, then one in a section's eyebrow slot. The eyebrow role, medium, uppercase with wider tracking, muted.
```astro
---
import Eyebrow from "@astronomic-dev/ui/components/Eyebrow.astro";
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
// Any icon component fits as the marker: Lucide's (@lucide/astro), your own SVG component, or another set.
import Code from "@lucide/astro/icons/code";
import Palette from "@lucide/astro/icons/palette";
import Sparkles from "@lucide/astro/icons/sparkles";
import Zap from "@lucide/astro/icons/zap";
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: "Plain code", text: "Astro and Tailwind files you can read and change.", icon: Code },
];
---
<div class="grid gap-blocks">
<Eyebrow marker={Sparkles}>New in the kit</Eyebrow>
<FeatureGridIcons heading="Built to change" text="A short label above the heading, in the eyebrow slot." items={features}>
<Eyebrow slot="eyebrow">What you get</Eyebrow>
</FeatureGridIcons>
</div>
```
## Props
### Eyebrow
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `marker` | `IconComponent` | None | A small mark before the label: your icon component (Lucide's, your own SVG component, or another), drawn through Icon at the small size, in the label's color. |
| `class` | `string` | None | More classes, merged with cn(), so yours win on conflicts. On the CTA band pass text-inherit, so the label takes the band's text color. |
| Slot | Description |
| --- | --- |
| `default` | The label: a few words. |
Any other attribute goes on the <span>.
## Accessibility
- Renders a <span> with no role: a screen reader reads the label as plain text, never as a heading. The section's heading stays the heading.
- The marker is hidden from a screen reader (aria-hidden="true"): the label says what it means.
- Uppercase is a style (text-transform), so a screen reader reads the words as you typed them. Type the label in sentence case.
Eyebrow
FreeFor a short label above a heading, like the topic of a section, with an optional small icon.
- File
- Eyebrow.astro
- Group
- Data display
- Kind
- Static: no JavaScript
- Examples
- 1
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Above a heading
A plain label with a marker on its own, then one in a section's eyebrow slot. The eyebrow role, medium, uppercase with wider tracking, muted.
New in the kit
What you get
Built to change
A short label above the heading, in the eyebrow slot.
Fast pages
Static HTML first, with only the scripts a part needs.
One look
Tokens set the colors, type and spacing for every part.
Plain code
Astro and Tailwind files you can read and change.
Force statemain.astro
examples/eyebrow/main.astro
---
import Eyebrow from "@astronomic-dev/ui/components/Eyebrow.astro";
import FeatureGridIcons from "@astronomic-dev/ui/components/FeatureGridIcons.astro";
// Any icon component fits as the marker: Lucide's (@lucide/astro), your own SVG component, or another set.
import Code from "@lucide/astro/icons/code";
import Palette from "@lucide/astro/icons/palette";
import Sparkles from "@lucide/astro/icons/sparkles";
import Zap from "@lucide/astro/icons/zap";
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: "Plain code", text: "Astro and Tailwind files you can read and change.", icon: Code },
];
---
<div class="grid gap-blocks">
<Eyebrow marker={Sparkles}>New in the kit</Eyebrow>
<FeatureGridIcons heading="Built to change" text="A short label above the heading, in the eyebrow slot." items={features}>
<Eyebrow slot="eyebrow">What you get</Eyebrow>
</FeatureGridIcons>
</div>Minimal · Light