# Newsletter, inline

- **[Sections](/blocks/)**
- **[Newsletter](/blocks/newsletter/)**
- **Newsletter, inline**

One-line email capture: headline and description beside an email field and a subscribe button.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/newsletter-inline
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/newsletter-inline';
  ```

Also called

- newsletter/inline

- **Category**: An email sign-up, inline or as a card. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A one-row sign-up: headline and description on one side, email field and button on the other, with no card and no image. If the newsletter needs a reason to subscribe, use `newsletter-split`.
- **Writing for it**: - There is no eyebrow and no media, so the title (100) does all the work. State the content, not the act of subscribing.
- The description (240) is capped to a lead-width column and works best as a single sentence about frequency.
- The consent text (160) goes under the field. Use it for what you will do with the address, since there is no space for anything else.
- **Watch out for**: The two halves sit side by side only from the @3xl container width; below it they stack, and the form lands under the description. The title is an h2 sized as a heading on small containers and as a title on wide ones.

## Pairs well with

- **[Stats, accent band](/blocks/stats/band)**
- **[Features, grid](/blocks/features/grid)**
- **[Footer, columns](/blocks/footer/link-columns)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import NewsletterInline from '@/components/klarhimmel/blocks/newsletter-inline';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <NewsletterInline props={{
          "title": "Say what subscribers get by email",
          "description": "Say in one or two sentences what the emails cover and how often they come.",
          "placeholder": "Your email address",
          "submit": "Subscribe",
          "consent": "Say how the address is kept and how to leave"
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **title**: Text, up to 100 characters.
- **description**: Text, up to 240 characters.
- **placeholder**: Text, up to 60 characters.
- **submit**: Text, up to 24 characters.
- **consent**: Text, up to 160 characters.
- **action**: Text, up to 300 characters. Optional; empty is not rendered.
- **method**: One of 'post', 'get'. Optional; empty is not rendered.
- **hidden**: Optional; empty is not rendered.
- **captcha**: Optional; empty is not rendered.
- **captchaSitekey**: Text, up to 100 characters. Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/newsletter/card)

[Next](/blocks/newsletter/split)
