This component adds previous and next options to your post type single template.

Here is the necessary PHP.

<?php
add_filter(
    "etch/dynamic_data/post",
    function ($data, $post_id) {
        $post_id = absint($post_id);

        if (!$post_id || !is_singular()) {
            return $data;
        }

        $current_post = get_post($post_id);

        if (!$current_post) {
            return $data;
        }

        $image_size = "medium_large";

        $format_adjacent_post = function ($post) use ($image_size) {
            if (!$post) {
                return null;
            }

            return [
                "id" => $post->ID,

                // Convert HTML entities to characters for Etch's title output.

                "title" => html_entity_decode(
                    get_the_title($post),

                    ENT_QUOTES | ENT_HTML5,

                    "UTF-8"
                ),

                "permalink" => get_permalink($post),

                "thumbnail" =>
                    get_the_post_thumbnail_url($post->ID, $image_size) ?: "",

                "has_image" => has_post_thumbnail($post),
            ];
        };

        $data["fw_prev_post"] = $format_adjacent_post(get_previous_post());

        $data["fw_next_post"] = $format_adjacent_post(get_next_post());

        return $data;
    },
    10,
    2
);

FW Post Navigator styling cheat sheet

Create an Etch class called my-post-nav and select it under Styling > Additional Styles on the component instance. Paste this CSS into that class. In Etch’s class editor, use & in place of .my-post-nav if the editor already scopes the rule.

All supported public variables are listed below. Uncomment only the values you want to override. Shown values match the component’s built-in fallbacks. Custom properties inherit into both navigation directions and popovers.

Responsive layout stacks Standard navigation below 600px. Popover positioning keeps 12px clearance from viewport edges. Those two settings are not public CSS variables in this version. Each icon sets the internal –fw-post-nav-icon value via its media prop; use the media selectors to replace the SVGs.

 /* Layout */
  /* --fw-post-nav-gap: 2rem; */             /* Between Previous and Next groups */
  /* --fw-post-nav-item-gap: 1rem; */        /* Between icon, image and text */
  /* --fw-post-nav-text-gap: .25rem; */      /* Between label and title */

  /* Link and icon colors */
  /* --fw-post-nav-color: var(--link-color, #064b76); */
  /* --fw-post-nav-hover-color: var(--link-color-hover, #032d47); */
  /* --fw-post-nav-focus-outline: 2px solid currentColor; */

  /* Previous / Next labels */
  /* --fw-post-nav-label-size: 1.125rem; */
  /* --fw-post-nav-label-weight: 700; */
  /* --fw-post-nav-label-transform: uppercase; */
  /* --fw-post-nav-label-decoration: underline; */

  /* Titles shown in Standard mode */
  /* --fw-post-nav-title-color: CanvasText; */
  /* --fw-post-nav-title-size: 1rem; */
  /* --fw-post-nav-title-weight: 600; */
  /* --fw-post-nav-title-decoration: underline; */

  /* Icons: choose the SVGs through Icons > Previous Icon / Next Icon.
     The SVG masks inherit the link color. */
  /* --fw-post-nav-icon-size: 1.5rem; */

  /* Featured images */
  /* --fw-post-nav-thumbnail-size: 3.5rem; */ /* Square image in Standard mode */
  /* --fw-post-nav-image-radius: .25rem; */  /* Standard and popover images */
  /* --fw-post-nav-image-ratio: 16 / 9; */   /* Image inside popover only */

  /* Popover mode */
  /* --fw-post-nav-preview-width: 20rem; */
  /* --fw-post-nav-preview-offset: .75rem; */ /* Gap from the triggering link */
  /* --fw-post-nav-preview-padding: 1rem; */
  /* --fw-post-nav-preview-border: 1px solid currentColor; */
  /* --fw-post-nav-preview-radius: .5rem; */
  /* --fw-post-nav-preview-background: Canvas; */
  /* --fw-post-nav-preview-color: CanvasText; */
  /* --fw-post-nav-preview-shadow: 0 .75rem 2rem rgb(0 0 0 / .2); */

/* 
Optional button treatment: uncomment the rule and customize.
These are ordinary CSS properties, not component variables.
This applies to both navigation links in either mode.
*/

/*

& .fw-post-nav__link {
  padding: .75rem 1rem;
  background: #f4f6f8;
  border: 1px solid #d5dce2;
  border-radius: .5rem;
}
& .fw-post-nav__link:is(:hover, :focus-visible) {
  background: #e8edf2;
  border-color: currentColor;
}

*/

/* 
Optional popover-title typography override.
The Standard title variables above do not affect popover titles.
*/

/*
& .fw-post-nav__preview-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}
*/

/* 
Direction-specific tweaks can target these descendants:

& .fw-post-nav__item--previous
& .fw-post-nav__item--next

*/
CSS