Skip to content
  • About
  • Pricing
Log inStart a project
About
Pricing

© Wabbit

Log inStart a project

Categories

All blocks176Hero15Feature10Pricing6Call to Action3Testimonials5FAQ2Logos & Clients2Media16Data & Metrics25Navigation9Banners & Notices3Editorial Layout7Editorial Devices8Rich Text Embeds3Layout & Structure12Primitives & Utilities4Actions3Content43

Bundles

Blocks›Primitives & Utilities

Primitive and utility blocks for Payload CMS

Spacer, Text Block, Code Block and Custom Block are the plain building parts under everything else on a page. All four are in the free Extras pack, and they install into the Payload project you already have.

⌕4 blocks
Columns
Free
SpacerExtras
Free
Text BlockExtras
Free
Code BlockExtras
Free
Custom BlockExtras

Add one to your Payload project

You need a Payload 3 and Next.js app, a free account and an install token. The get-started guide covers the token and the .npmrc lines.

Code Block is in the free Extras pack. Paid packs install the same way once your token covers them.

Read the get-started guide →

  1. Install the pack

    npm install @wabbit/tome-blocks-extras
  2. Load the design tokens

    One line in your global CSS. Without it the blocks render unstyled.

    @import '@wabbit/tome-blocks-core/styles.css';
  3. Add the block to a field

    Put it in your Pages collection's blocks field, next to the blocks you already have. Run payload generate:types afterwards so your generated types know about the new block.

    import { codeBlock } from '@wabbit/tome-blocks-extras'
    
    // in your Pages collection:
    {
      name: 'layout',
      type: 'blocks',
      blocks: [...existingBlocks, codeBlock.block()],
    }
  4. Render it on the Tome grid

    import { renderers } from '@wabbit/tome-blocks-extras/render/register'
    import { adaptRenderersForPayload, RenderBlocks } from '@wabbit/tome-blocks-core/render'
    import gridStyles from '@wabbit/tome-ui/grid'
    
    const blockComponents = {
      ...yourExistingComponents,
      ...adaptRenderersForPayload(renderers),
    }
    
    <RenderBlocks
      blocks={page.layout}
      components={blockComponents}
      gridClassName={gridStyles.grid}
    />

Only if the project has never installed from our registry

Sign up at /signup (no card). Then go to Account, Credentials, claim the free license and generate your key in the same card. Add this to the project's .npmrc:

@wabbit:registry=https://npm.wabbit.com/

And this to your user-level ~/.npmrc:

//npm.wabbit.com/:_authToken=YOUR_TOKEN_HERE

Questions about primitive and utility blocks

What does the Spacer block do?
Spacer is a pure vertical gap with a size scale and responsive show and hide. Its Bridge mode turns it into a viewport-tall pause that can center a hairline rule or a section numeral.
What goes in Text Block?
Headings, paragraphs, lists, inline code and buttoned or inline links, with a controllable reading measure and an editorial column range. It is the simplest way to put formatted prose on a page.
Can I show code on a page?
Code Block is a syntax-highlighted snippet with a language selector, a caption below or in the margin, and a breakout width, for docs, tutorials and technical articles.
What is Custom Block for?
It is an escape hatch for site-specific blocks the standard library doesn't cover. It is a typed container that passes through to a custom renderer registered in your site, and its descriptor marks it as intended for developer use.

Other block categories

  • 12 blocksLayout & StructureSection and Grid, the containers these blocks sit in.
  • 3 blocksRich Text EmbedsInline blocks for Lexical rich text fields.
  • 8 blocksEditorial DevicesSmall structural parts for long-form pages.

Start with the free packs.

Create a free account, generate an install token, and add a pack to the Payload project you already have. There is no card and no trial.

The Craft Library is $250 a year and adds every paid pack with full source. If you stop, what you installed stays yours.

Create a free accountSee the plans and what each includes →
  • Free: Marketing Starter, Content Writer and Extras, 63 blocks, no card.
  • Craft Library, $250 a year: every paid pack and theme, full source, scoped install tokens.
  • Single packs, $49 once: for the packs sold on their own.

Not ready to talk yet?

Then read first. It’s free.

Four long-form series and a shelf of essays, written for wherever you are right now. No email gate.

Browse the Library

Ready when you are

Talk now, or read first.

Tell us what you’re building and we’ll reply the same day or the next. Or read first: four long-form series and a shelf of essays, no email gate.

Start a projectBrowse the Library

Ready when you are

Read enough? Let’s talk.

Tell us what you’re building and we’ll reply the same day or the next.

Start a projectStart here, free
  • Getting startedThe Entrepreneur's QuestThe messy middle between where you are and where you want to be.
  • Testing an ideaVision to VentureTest the water before you build the boat.
  • Finding customersThe Traffic FrameworkPaid and organic traffic as a system, not a guess.
  • Pixels and Profits, a Game Marketing Guidebook, by Wabbit
    Game studiosPixels and ProfitsSixteen chapters on marketing a game.

Newest essay · November 2026

Silent data loss in Payload: when the API says success and nothing saved
All essays

Services

  • Platform Builds
  • Static Sites
  • Architecture Sprint
  • Websites for trades
  • Pricing

Tome

  • What Tome is
  • Plans & Engines
  • CRM & Marketing
  • Learning
  • Commerce
  • Directory
  • Community
  • Block Catalog
  • Themes
  • Get started
  • License

Tome compared

  • All comparisons
  • vs WordPress
  • vs Webflow
  • vs Wix & Squarespace
  • vs Shopify
  • vs HubSpot
  • vs course platforms
  • vs Payload blocks

Learn

  • Start Here
  • The Library
  • Series
  • Essays
  • Wabbit EDU
  • The Validation Laboratory

Wabbit

  • About
  • Case studies
  • Contact
  • Log in

© Wabbit 2026

Privacy · Terms · Refunds & Returns · License · Support · Continuity