Marketing sectionsStatement
Searchastronomic.dev# Statement
For one big sentence about who you are, in two tones, that can fill with ink as it scrolls into view.
Static: no JavaScript.
## Usage
```astro
import Statement from "@astronomic/ui-pro/components/Statement.astro";
```
## Examples
### One big sentence
The statement in the quote role in display type, sized to its own box, at the lead width; a Button in the actions slot a block under it.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<Container size="md" class="py-16">
<Statement text="Astronomic is a small studio in a former print shop. The people who pitch your project are the ones who design it, build it and answer your email on launch day.">
<Button slot="actions" variant="secondary" href="#studio" roll iconTile={ArrowRight}>Meet the studio</Button>
</Statement>
</Container>
```
### Words that fill as you scroll
With fill, each word starts in the quiet start color and fills with ink as the statement scrolls through view, early words first. Without scroll-driven animation, under reduced motion and under a calm theme, the words show in full ink.
```astro
---
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<!-- Scroll the frame: the words fill with ink as the statement passes through view, early words first. -->
<Container size="md" class="py-96">
<Statement fill text="Astronomic takes on eight to ten projects a year, so the people who pitch your project are the ones who design it, build it and answer your email on launch day." />
</Container>
```
### On the dark panel
tone="inverse" inside Panel tone="inverse": the panel's ink, and a fill that starts from the panel's own quiet color. Buttons take tone="inverse".
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
import Container from "@astronomic-dev/ui/components/Container.astro";
import Panel from "@astronomic-dev/ui/components/Panel.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<!-- On the dark panel: tone="inverse" names the panel's colors, and its fill starts from the panel's own quiet color. Scroll the frame to fill it. -->
<div class="py-96">
<Panel tone="inverse" as="div">
<Container size="md">
<Statement tone="inverse" fill text="Brand, websites and motion, by the same small team, from the first workshop to the day the site goes live.">
<Button slot="actions" tone="inverse" href="#start" roll iconTile={ArrowRight}>Start a project</Button>
</Statement>
</Container>
</Panel>
</div>
```
### Two tones, as the heading
quiet adds a second part after the text in the quiet color. as="h2" makes the statement the section's heading.
```astro
---
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<Container size="md" class="py-16">
<Statement as="h2" text="Have something worth making?" quiet="Tell us about it, and we will write back within two working days." />
</Container>
```
## Props
### Statement
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `text` | `string` | None | Required. The statement, in full ink. Plain text: markup shows as text. |
| `quiet` | `string` | None | A second part after the text, in the quiet color of the surface. It does not fill. |
| `fill` | `boolean` | `false` | Each word fills from the surface's start color to full ink as the statement scrolls through view, early words first. Off, or without scroll-driven animation, under reduced motion or under a calm theme: full ink. |
| `tone` | `"page" \| "inverse" \| "image"` | `"page"` | The surface it sits on: page (the page, surface or surface-2), inverse (Panel tone="inverse") or image (a photo under the scrim, Panel tone="image"). It picks the ink, the quiet color and the fill's start color. |
| `as` | `"p" \| "h2"` | `"p"` | The statement's element. Use h2 when it is the section's heading. |
| `class` | `string` | None | More classes on the root, merged with cn(), so yours win on conflicts. |
| Slot | Description |
| --- | --- |
| `actions` | Buttons or links a block under the statement, in a row that wraps. |
Any other attribute goes on the root <div>.
## Accessibility
- The statement is a <p>, or an <h2> with as="h2". With fill each word is a span, and the ink copy that fades in is drawn by CSS with empty alt text, so a screen reader reads every word once.
- Nothing hides the words: before the fill starts each word is in the start color, which keeps 4.5:1 on its surface in every preset.
- The fill runs only when the reader allows motion and the theme is not calm; otherwise the words are in full ink and nothing moves.
Statement
ProFor one big sentence about who you are, in two tones, that can fill with ink as it scrolls into view.
- File
- Statement.astro
- Group
- Marketing sections
- Kind
- Static: no JavaScript
- Examples
- 4
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
One big sentence
The statement in the quote role in display type, sized to its own box, at the lead width; a Button in the actions slot a block under it.
This preview did not load.
examples/statement/main.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<Container size="md" class="py-16">
<Statement text="Astronomic is a small studio in a former print shop. The people who pitch your project are the ones who design it, build it and answer your email on launch day.">
<Button slot="actions" variant="secondary" href="#studio" roll iconTile={ArrowRight}>Meet the studio</Button>
</Statement>
</Container>Words that fill as you scroll
With fill, each word starts in the quiet start color and fills with ink as the statement scrolls through view, early words first. Without scroll-driven animation, under reduced motion and under a calm theme, the words show in full ink.
This preview did not load.
examples/statement/fill.astro
---
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<!-- Scroll the frame: the words fill with ink as the statement passes through view, early words first. -->
<Container size="md" class="py-96">
<Statement fill text="Astronomic takes on eight to ten projects a year, so the people who pitch your project are the ones who design it, build it and answer your email on launch day." />
</Container>On the dark panel
tone="inverse" inside Panel tone="inverse": the panel's ink, and a fill that starts from the panel's own quiet color. Buttons take tone="inverse".
This preview did not load.
examples/statement/inverse.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import ArrowRight from "@lucide/astro/icons/arrow-right";
import Container from "@astronomic-dev/ui/components/Container.astro";
import Panel from "@astronomic-dev/ui/components/Panel.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<!-- On the dark panel: tone="inverse" names the panel's colors, and its fill starts from the panel's own quiet color. Scroll the frame to fill it. -->
<div class="py-96">
<Panel tone="inverse" as="div">
<Container size="md">
<Statement tone="inverse" fill text="Brand, websites and motion, by the same small team, from the first workshop to the day the site goes live.">
<Button slot="actions" tone="inverse" href="#start" roll iconTile={ArrowRight}>Start a project</Button>
</Statement>
</Container>
</Panel>
</div>Two tones, as the heading
quiet adds a second part after the text in the quiet color. as="h2" makes the statement the section's heading.
This preview did not load.
examples/statement/quiet.astro
---
import Container from "@astronomic-dev/ui/components/Container.astro";
import Statement from "@astronomic/ui-pro/components/Statement.astro";
---
<Container size="md" class="py-16">
<Statement as="h2" text="Have something worth making?" quiet="Tell us about it, and we will write back within two working days." />
</Container>