Runway
HomeComponentsPricingDev Tools

Start Here

  • Overview
  • Installation
  • Project Structure

Customize

  • Customization
  • Runtime Configuration
  • Site Content

Build

  • Components
  • Layout
  • Brand

Product Systems

  • Auth, Billing, Email, SEO, Security
Loading docs page
Built withRunway
  1. Build
  2. Components

Components

How to use the shared UI components and docs previews.

Use shared UI first

Reach for the existing shared components before building page-specific wrappers. That keeps the site, docs, and product surfaces moving in the same direction.

Preview pattern

Use PreviewCode when a docs page needs a live example plus the exact snippet that produced it.

Shared UI example

Use the real component, then show the exact code that generated it.

Preview
jsx
1<Button variant="soft" tone="neutral" radius="full">Open docs</Button>

Choose the right layer

NeedStart here
Shared buttons, inputs, badges, and calloutssrc/components/ui/*
Headers, footers, shell behavior, and navigationsrc/components/layout/*
Logos and brand presentationsrc/components/brand/*
Public marketing sectionssrc/components/marketing/*

If you are only changing a page composition, keep that change local. If you are changing a shared pattern, edit the shared layer directly.

Related

  • Layout
  • Brand
  • Site Content

On This Page

  • Use shared UI first
  • Preview pattern
  • Choose the right layer

Related

  • Layout
  • Brand
  • Site Content