Content blocks

Page link

The sub-page / link-to-page block: page icon plus an underlined 500-weight title.

Usage

  • Use Page link to link to another page as its own block (sub-pages, related pages).
  • Always pass an href so the link is focusable.
  • Use a mention in rich text when the link belongs inside a sentence.
  • Don’t use Page link for external URLs; use Bookmark or a text link instead.

Installation

Install the package (React 19):

terminal
npm install @krackedui/motion

Import the styles once, in your app entry or root layout:

/src/main.tsx
import '@krackedui/motion/styles.css';

Use it anywhere inside your app's <Theme> (see Installation):

/src/PagelinkExample.tsx
import { BlockContent, PageLink, rt } from '@krackedui/motion';

export function PageLinkExample() {
  return (
    <BlockContent>
      <PageLink icon="🗺️" text={rt('Roadmap')} href="/roadmap" />
      <PageLink text={rt('Meeting notes')} href="/notes" />
      <PageLink empty text={rt('Empty page')} href="/empty" />
    </BlockContent>
  );
}

API Reference

Based on <div> and supports its props. Adds:

PropTypeDefault
icon
string
href
string
empty
boolean
false
text
RichText
renderLeaf
LeafRenderer

Accessibility

  • Renders an <a>; give it an href so it is focusable.
  • Placeholder “Untitled” when the title is empty.
© 2026 Motion. Internal documentation.