Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro
Common patterns

SEO, Open Graph, and structured data

generateMetadata, Schema JSON-LD, and server-side OG fetch — wire once in your layout.
Updated 19d ago
Empty & error states
Documentation code blocks with live preview
5 min · Pattern
generateMetadata and Schema ship in @once-ui-system/core — wire them once in your root layout and every route inherits correct OG, Twitter, and JSON-LD output.

What ships in Core

Piece
Module
Role
`generateMetadata()``modules/seo/Meta`Next.js `Metadata` object with OG + Twitter cards
`Schema``modules/seo/Schema`JSON-LD script tag (`WebSite`, `Article`, `BlogPosting`, etc.)
`handleOGFetch``server/og-utils`Server-side URL preview for link cards
These are server-safe — import from @once-ui-system/core in layouts and page files, not inside client components.

generateMetadata in a layout

Pass baseURL, title, description, and optional path. When you omit image, Core falls back to /api/og/generate?title=… so every page gets a share card without hand-crafting images.
import { generateMetadata as onceMeta } from "@once-ui-system/core";

export const metadata = onceMeta({
  title: "Dashboard",
  description: "Team metrics and activity",
  baseURL: "https://app.example.com",
  path: "/dashboard",
  type: "website",
});
For blog posts, set type: "article" and pass publishedTime plus an author object. Use noindex / nofollow on private routes instead of maintaining a separate robots file per page.

JSON-LD with Schema

Drop the Schema component in your root layout or article template. Pick the as prop that matches the page type — website for home, blogPosting for posts, organization for company pages. Required props: as, title, description, baseURL, path. Optional: datePublished, dateModified, author, image, sameAs. Example shape for a blog post:
as="blogPosting"
title="Loading states in Once UI"
description="Skeletons hold layout; spinners signal actions."
baseURL="https://learn.once-ui.com"
path="/common-patterns/loading-states"
datePublished="2026-07-18"
author.name="Once UI"
author.url="https://once-ui.com"
The component normalizes baseURL and path, builds an absolute image URL, and emits a single JSON-LD script block.

Link previews (OgCard)

For in-app link unfurling, use OgCard with the useOgData hook on the client. On the server, call handleOGFetch(url) inside a route handler or Server Component — it returns title, description, image, and favicon. Keep fetch on the server when possible; client fetches are fine for chat or comment threads where the URL is user-supplied.

Write this / not this

✅ Once UI way
❌ Common mistake
`generateMetadata()` with `baseURL` + `path`Hard-coded meta tags per page
Schema component with `as="blogPosting"`Hand-written JSON-LD strings
Fallback OG image via title paramBlank `og:image` on share
`noindex` on draft routesLeaving staging pages indexable

Check yourself

  • baseURL has no trailing slash issues (Core normalizes it)
  • Article pages pass publishedTime and author
  • Private routes set noindex or robots
  • JSON-LD as type matches the actual page content

Related

→ Hero section → App shell navigation → Full reference: docs.once-ui.com — Meta