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.
Acme
Everything is a block.
Composed
Accessible
Themeable
Agent-ready
Three steps.
Install
Add the block and its dependencies.
Copy codeEdit
Change the content object at the top of the page.
Ship
It's your code: deploy it like any page.
Installation
Usage
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
| Prop | Type | Default |
|---|---|---|
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 LandingPagePropsAccessibility
- 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.