Skip to Content
UI

Blocks

Whole-page starting points: dashboard, auth, pricing, settings and more, meant to be copied in and edited.

Usage

A block is a full page built from Signet components. Copy it into your app and edit it:

bun path/to/signet/packages/cli/src/index.ts add block pricing

You can also import one directly while you prototype:

import { Pricing } from "@dapplelight/signet-ui/blocks/pricing"
import { startCheckout } from "./billing"

export function Plans() {
  return (
    <Pricing
      plans={[
        { id: "free", name: "Free", price: { month: 0 }, features: ["1 project"] },
        { id: "pro", name: "Pro", price: { month: 1200, year: 12000 }, features: ["Unlimited projects"], highlighted: true },
      ]}
      currency="USD"
      onSelect={(plan, interval) => startCheckout(plan.id, interval)}
    />
  )
}

Like screens, a block is data in, callbacks out: no fetch or router inside. Prices are minor units. Every block takes a state of ready, loading or error, and exports DEFAULT_*_LABELS to reword its strings through a labels prop.

API

Each block is its own path, @dapplelight/signet-ui/blocks/<name>.

BlockWhat it is
analytics-dashboardMetric tiles, a chart and a recent-activity table with a range picker.
auth-pageSign in or sign up with one-time code and provider buttons.
checkout-summaryOrder lines, discount, tax and total with a pay button.
empty-pageA page-sized empty state with one action.
error-pageA 404 or 500 page.
list-detailA filterable list with a detail pane.
onboardingStep-by-step welcome flow.
pricingPlan cards with a monthly and yearly toggle.
settingsGeneral settings, notification toggles and a danger zone.

The screens/cost-dashboard screen, which shows AI spend, is under Screens.