Skip to Content

Growth Screens

Waitlist join, invite accept, referral card, onboarding checklist, feedback form and widget, and a what's new widget.

Get started

1 of 3 done
import { useState } from "react"
import { OnboardingChecklist } from "@dapplelight/signet-ui/screens/growth-screens"

function OnboardingChecklistDemo() {
  const [done, setDone] = useState<string[]>(["profile"])
  return (
    <OnboardingChecklist
      className="w-full max-w-sm"
      done={done}
      onDoneChange={setDone}
      onStepSelect={(step) => setDone((d) => (d.includes(step.key) ? d : [...d, step.key]))}
      steps={[
        { key: "profile", title: "Complete your profile", description: "Add a photo and your team name." },
        { key: "invite", title: "Invite a teammate", description: "Work together on the same board." },
        { key: "import", title: "Import your invoices", description: "Upload a CSV from your old tool." },
      ]}
    />
  )
}

Installation

npm i @dapplelight/signet-ui

Usage

import {
  WaitlistJoin,
  InviteAccept,
  ReferralCard,
  OnboardingChecklist,
  FeedbackWidget,
  WhatsNew,
} from "@dapplelight/signet-ui/screens/growth-screens"

Data is shaped like signet-db's growth module results; actions come out as callbacks.

import { WaitlistJoin } from "@dapplelight/signet-ui/screens/growth-screens"
import { growth } from "./growth"

<WaitlistJoin onJoin={(email) => growth.joinWaitlist(email)} />

Examples

WaitlistJoin

Join the waitlist

import { WaitlistJoin } from "@dapplelight/signet-ui/screens/growth-screens"

function WaitlistJoinDemo() {
  return (
    <WaitlistJoin
      className="w-full max-w-sm"
      onJoin={(email) => ({ email, position: 412, joined: true })}
    />
  )
}

InviteAccept

AR

Asha Rao invited you

Join Northwind Studio as editor

Expires Dec 1, 2026

import { InviteAccept } from "@dapplelight/signet-ui/screens/growth-screens"

function InviteAcceptDemo() {
  return (
    <InviteAccept
      className="w-full max-w-sm"
      invite={{
        inviterName: "Asha Rao",
        scopeName: "Northwind Studio",
        role: "editor",
        email: "[email protected]",
        expiresAt: "2026-12-01",
      }}
      onAccept={() => ({ ok: true })}
      onDecline={() => undefined}
    />
  )
}

A failure that is known up front, such as a token that did not resolve, shows through error.

You're invited

Join Northwind Studio

This invite has expired
import { InviteAccept } from "@dapplelight/signet-ui/screens/growth-screens"

function InviteAcceptExpiredDemo() {
  return (
    <InviteAccept
      className="w-full max-w-sm"
      invite={{ scopeName: "Northwind Studio" }}
      error="expired"
      onAccept={() => ({ ok: false, reason: "expired" })}
    />
  )
}

ReferralCard

Invite friends

Your codeASHA20
Joined
14
Subscribed
5
Rewarded
3
import { ReferralCard } from "@dapplelight/signet-ui/screens/growth-screens"

function ReferralCardDemo() {
  return (
    <ReferralCard
      className="w-full max-w-sm"
      code="ASHA20"
      url="https://app.example.com/?ref=ASHA20"
      stats={{ referred: 14, converted: 5, rewarded: 3 }}
    />
  )
}

OnboardingChecklist

Get started

1 of 3 done
import { useState } from "react"
import { OnboardingChecklist } from "@dapplelight/signet-ui/screens/growth-screens"

function OnboardingChecklistDemo() {
  const [done, setDone] = useState<string[]>(["profile"])
  return (
    <OnboardingChecklist
      className="w-full max-w-sm"
      done={done}
      onDoneChange={setDone}
      onStepSelect={(step) => setDone((d) => (d.includes(step.key) ? d : [...d, step.key]))}
      steps={[
        { key: "profile", title: "Complete your profile", description: "Add a photo and your team name." },
        { key: "invite", title: "Invite a teammate", description: "Work together on the same board." },
        { key: "import", title: "Import your invoices", description: "Upload a CSV from your old tool." },
      ]}
    />
  )
}

FeedbackForm

Type
Rating
import { FeedbackForm } from "@dapplelight/signet-ui/screens/growth-screens"

function FeedbackFormDemo() {
  return (
    <FeedbackForm
      className="w-full max-w-sm"
      rating
      onSubmit={() => new Promise((resolve) => setTimeout(resolve, 400))}
    />
  )
}

FeedbackWidget

import { FeedbackWidget } from "@dapplelight/signet-ui/screens/growth-screens"

function FeedbackWidgetDemo() {
  return <FeedbackWidget rating onSubmit={() => undefined} />
}

WhatsNew

import { useState } from "react"
import { WhatsNew } from "@dapplelight/signet-ui/screens/growth-screens"
import { entries } from "./growth"

function WhatsNewDemo() {
  const [unseen, setUnseen] = useState(2)
  return <WhatsNew entries={entries} unseen={unseen} onOpen={() => setUnseen(0)} />
}

API Reference

All screens accept labels (Partial<GrowthLabels>, defaults in DEFAULT_GROWTH_LABELS) except where noted, and the props of their root element.

WaitlistJoin

PropTypeDefaultDescription
onJoin(email: string) => Promise<WaitlistResult> | WaitlistResultrequiredJoin and return the place in line.
resultWaitlistResult | null-The result (controlled), e.g. from an earlier visit.
defaultResultWaitlistResult | null-Initial result when uncontrolled.
onResultChange(result: WaitlistResult | null) => void-Called when the result changes.
titleReactNode-Heading override.

InviteAccept

PropTypeDefaultDescription
inviteInviteDetailsrequiredInviter, scope, role, email and expiry.
onAccept() => Promise<InviteAcceptResult> | InviteAcceptResultrequiredAccept the invite.
onDecline() => void-Shows Decline when set.
onAccepted() => void-Called after a successful accept, e.g. to navigate.
error"not_found" | "expired" | "used" | "revoked" | "email_mismatch"-Show a failure straight away.

ReferralCard

PropTypeDefaultDescription
codestringrequiredThe referral code.
urlstringrequiredThe link that carries the code.
stats{ referred: number; converted: number; rewarded: number }-Counts of friends.
onShare(url: string) => voidWeb Share API, else copyReplaces the share action.
titleReactNode-Heading override.

OnboardingChecklist

PropTypeDefaultDescription
stepsreadonly OnboardingStep[]requiredkey, title and optional description.
donereadonly string[]-Done step keys (controlled).
defaultDonereadonly string[]-Initial done keys when uncontrolled.
onDoneChange(done: string[]) => void-Called when done keys change.
onStepSelect(step: OnboardingStep) => void-A step was chosen: take the user there.
onDismiss() => void-Shows Dismiss when set.
titleReactNode-Heading override.

FeedbackForm

PropTypeDefaultDescription
onSubmit(input: FeedbackInput) => Promise<unknown> | unknownrequiredSend the feedback.
kindsreadonly string[]bug, idea, praise, otherFeedback kinds.
ratingboolean-Ask for 1 to 5 stars too.
defaultKindstring-The kind selected first.

FeedbackWidget

Takes every FeedbackForm prop, plus:

PropTypeDefaultDescription
openboolean-Popover open state (controlled).
defaultOpenbooleanfalseInitial open state.
onOpenChange(open: boolean) => void-Called when it opens or closes.
triggerReactElement-Replaces the trigger button.
contentClassNamestring-Class on the popover content.

WhatsNew

PropTypeDefaultDescription
entriesreadonly ChangelogEntry[]requiredEvery entry, newest first.
unseennumber0How many are unseen.
onOpen() => void-Opened: mark them seen.
openboolean-Open state (controlled).
defaultOpenbooleanfalseInitial open state.
onOpenChange(open: boolean) => void-Called when it opens or closes.
triggerReactElement-Replaces the trigger button.
classNamestring-Class on the trigger.
contentClassNamestring-Class on the popover content.