# Editorial Section

> A heading and prose beside an image.

```tsx
import { EditorialSection } from '@brand-studio/ui';
import { beans } from '@/demos/assets';

export default function EditorialSectionDemo() {
  return (
    <EditorialSection title="Start with the bean." asset={beans}>
      <p>Small differences become the whole cup. We roast in small batches so each lot keeps its own character.</p>
    </EditorialSection>
  );
}
```

## Installation

```sh
npm install @brand-studio/ui
```

React 18 or 19 is a peer dependency. Import the stylesheet once and wrap the app in a brand theme:

```tsx
import '@brand-studio/ui/styles.css';
import { BrandTheme, EditorialSection } from '@brand-studio/ui';
import brand from './brand.json';

<BrandTheme palette={brand.tokens} mode="system">
  {/* your app */}
</BrandTheme>
```

## Usage

```tsx
import { EditorialSection } from '@brand-studio/ui';
```

```tsx
<EditorialSection title="Start with the bean." asset={beans}>
  <p>…</p>
</EditorialSection>
```

## Accessibility

- The title is an `<h2>`. On phones the image moves below the text.

## API Reference

| Prop | Type | Default |
|---|---|---|
| `title` | `string` | – |
| `children` | `React.ReactNode` | – |
| `asset?` | `ImageAsset` | – |
| `id?` | `string` | – |

Source: https://brandstudio.js.org/docs/components/editorial-section/
