Skip to content
Eskais UI

Blocks

Landing Page

A whole landing page made only of blocks (Hero, SectionHeading, Bento, Steps and SiteFooter, with a header slot), with its content in one object: the template to copy and edit.

Example

Now in public beta

Ship the page, not the layout.

Every section of this page is a registry block. Change its props and slots; the layout stays put.

npx shadcn@latest add @eskais/landing-page
Preview

Acme

Every section of this page is a registry block. Change its props and slots; the layout stays put.
ReadyComposed

Features

Everything is a block.

Composed

Hero, Bento, Steps and SiteFooter are blocks with props.

Accessible

Landmarks, headings and links come right.

Themeable

Tokens for colour, spacing and type.

Agent-ready

Every control is a UI SDK part.

Get started

Three steps.

  1. Install

    Add the block and its dependencies.

    npx shadcn@latest add @eskais/hero
  2. Edit

    Change the content object at the top of the page.

  3. Ship

    It's your code: deploy it like any page.

Acme

Every section of this page is a registry block. Change its props and slots; the layout stays put.

© Acme

Installation

npx shadcn@latest add @eskais/landing-page

Usage

Import
import { LandingPage } from "@/components/landing-page"

Copy it, then edit the content object at its top and the blocks' props. It is the template for a new landing page: no hand-written layout, only blocks.

API reference

LandingPage

PropTypeDefault
headerThe site header, usually a Floating bar with the logo and navigation.ReactNode–
as`div` when the page already has its `<main>`, like a preview inside another page."main" | "div""main"

Other exports

type LandingPageProps

Accessibility

  • One h1 in the hero; every section is a region named by its SectionHeading.
  • Pass as="div" when the page already renders its <main>.

Agent actions

Agents read it through its parts: the install command's copy action, links with onFollow, and any controls you put in the tiles.

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.