appgram / docs
Dashboard

REACT SDK

React SDK

Drop-in components and headless hooks for React and Next.js applications.

Install
npm install @appgram/[email protected]
Quickstart
'use client';

import { AppgramProvider, useAppgramContext, useVote, useWishes, type Wish } from '@appgram/react';

function FeedbackVote({ wish }: { wish: Wish }) {
  const { fingerprint } = useAppgramContext();
  const { hasVoted, voteCount, isLoading, error, vote } = useVote({
    wishId: wish.id,
    initialVoteCount: wish.vote_count,
    initialHasVoted: wish.has_voted,
  });

  return (
    <div>
      <button
        onClick={() => void vote()}
        disabled={!fingerprint || isLoading || hasVoted}
        aria-pressed={hasVoted}
      >
        {hasVoted ? 'Voted' : isLoading ? 'Saving…' : 'Vote'} ({voteCount})
      </button>
      {!fingerprint && <span> Preparing anonymous voting…</span>}
      {error && <p role="alert">{error}</p>}
    </div>
  );
}

function Feedback() {
  const { wishes, isLoading, error, refetch } = useWishes();

  if (isLoading) return <p>Loading feedback…</p>;
  if (error) return (
    <div>
      <p role="alert">{error}</p>
      <button onClick={() => void refetch()}>Try again</button>
    </div>
  );
  if (wishes.length === 0) return <p>No feature requests yet.</p>;

  return (
    <ul>{wishes.map((wish) => (
      <li key={wish.id}>
        <h2>{wish.title}</h2>
        <FeedbackVote wish={wish} />
      </li>
    ))}</ul>
  );
}

export default function App() {
  return (
    <AppgramProvider config={{
      projectId: 'YOUR_PROJECT_ID',
      orgSlug: 'your-org',
      projectSlug: 'your-project',
    }}>
      <Feedback />
    </AppgramProvider>
  );
}
1215 symbols145 categoriestsx

Classes

Methods

constructor→ AppgramClient
  • config: AppgramClientConfig
addSupportMessage→ Promise<ApiResponse<object>>

Add a message to a support ticket

  • ticketId: string
  • token: string
  • content: string
checkVote→ Promise<ApiResponse<VoteCheckResponse>>

Check if a fingerprint has voted on a wish

  • wishId: string
  • fingerprint: string
checkWaitlistStatus→ Promise<ApiResponse<WaitlistStatus>>

Check if an email is on the waitlist

  • email: string
createComment→ Promise<ApiResponse<Comment>>

Create a comment

  • data: object
createVote→ Promise<ApiResponse<object>>

Create a vote

  • wishId: string
  • fingerprint: string
  • voterEmail: stringoptional
createWish→ Promise<ApiResponse<Wish>>

Create a new wish (feature request)

  • data: object
deleteVote→ Promise<ApiResponse<object>>

Delete a vote

  • voteId: string
getBlogCategories→ Promise<ApiResponse<BlogCategory[]>>

Get blog categories

getBlogPost→ Promise<ApiResponse<BlogPost>>

Get a single blog post by slug

  • slug: string
getBlogPosts→ Promise<ApiResponse<BlogPostsResponse>>

Get public blog posts with optional filters

  • filters: BlogFiltersoptional
getBlogPostsByCategory→ Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by category slug

  • categorySlug: string
  • options: objectoptional
getBlogPostsByTag→ Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by tag

  • tag: string
  • options: objectoptional
getComments→ Promise<ApiResponse<CommentsResponse>>

Get comments for a wish

  • wishId: string
  • options: objectoptional
getContactForm→ Promise<ApiResponse<ContactForm>>

Get a contact form by ID via portal endpoint

  • formId: string
getFeaturedBlogPosts→ Promise<ApiResponse<BlogPost[]>>

Get featured blog posts

getHelpArticle→ Promise<ApiResponse<HelpArticle>>

Get a help article by slug

  • slug: string
  • flowId: string
getHelpCollection→ Promise<ApiResponse<object>>

Get help center collection for the project

getHelpFlow→ Promise<ApiResponse<HelpFlow>>

Get a help flow by slug

  • slug: string
getPageData→ Promise<ApiResponse<object>>

Get all public page data in one request

getPublicForm→ Promise<ApiResponse<ContactForm>>

Get a public contact form by ID (legacy endpoint)

  • formId: string
getPublicStatusOverview→ Promise<ApiResponse<StatusPageOverview>>

Get public status page overview (services, active updates, overall status)

  • slug: stringoptional
getPublicSurvey→ Promise<ApiResponse<Survey & object>>

Get a public survey by slug

  • slug: string
getPublicSurveyCustomization→ Promise<ApiResponse<Record<string, unknown>>>

Get survey customization settings

  • surveyId: string
getPublicWishes→ Promise<ApiResponse<WishesResponse>>

Get public wishes for the project

  • filters: WishFiltersoptional
getRelatedBlogPosts→ Promise<ApiResponse<BlogPost[]>>

Get related blog posts for a given post

  • slug: string
getRelease→ Promise<ApiResponse<Release>>

Get a single release by slug

  • releaseSlug: string
getReleaseFeatures→ Promise<ApiResponse<ReleaseFeature[]>>

Get features for a release (public endpoint)

  • releaseSlug: string
getReleases→ Promise<ApiResponse<Release[]>>

Get public releases for the project

  • options: objectoptional
getRoadmapData→ Promise<ApiResponse<RoadmapData>>

Get roadmap data for the project

getSupportTicket→ Promise<ApiResponse<SupportRequest>>

Get a specific support ticket using magic link token

  • ticketId: string
  • token: string
getWaitlistCount→ Promise<ApiResponse<WaitlistCount>>

Get the total count of users on the waitlist

getWish→ Promise<ApiResponse<Wish>>

Get a single wish by ID

  • wishId: string
joinWaitlist→ Promise<ApiResponse<WaitlistEntry>>

Join the waitlist

  • data: WaitlistJoinInput
leaveWaitlist→ Promise<ApiResponse<object>>

Leave the waitlist

  • email: string
searchBlogPosts→ Promise<ApiResponse<BlogPostsResponse>>

Search blog posts

  • query: string
  • options: objectoptional
sendSupportMagicLink→ Promise<ApiResponse<object>>

Request a magic link to access support tickets

  • userEmail: string
submitContactForm→ Promise<ApiResponse<ContactFormSubmission>>

Submit a contact form

  • projectId: string
  • formId: string
  • data: ContactFormSubmitInput
submitSupportRequest→ Promise<ApiResponse<SupportRequest>>

Submit a support request

  • data: SupportRequestInput
submitSurveyResponse→ Promise<ApiResponse<SurveyResponse>>

Submit a survey response

  • surveyId: string
  • data: SurveySubmitInput
trackContactFormView→ Promise<ApiResponse<object>>

Track a contact form view (call when form is displayed)

  • formId: string
uploadFile→ Promise<ApiResponse<object>>

Upload a file via public portal (no auth required)

  • file: File
verifySupportToken→ Promise<ApiResponse<object>>

Verify magic link token and get user's support tickets

  • token: string

AppgramClient

Add a message to a support ticket

Parameters

ticketIdstring
tokenstring
contentstring

Returns

Promise<ApiResponse<object>>

Check if a fingerprint has voted on a wish

Parameters

wishIdstring
fingerprintstring

Returns

Promise<ApiResponse<VoteCheckResponse>>

Check if an email is on the waitlist

Parameters

emailstring

Returns

Promise<ApiResponse<WaitlistStatus>>

Parameters

configAppgramClientConfig

Returns

AppgramClient

Create a comment

Parameters

dataobject

Returns

Promise<ApiResponse<Comment>>

Create a vote

Parameters

wishIdstring
fingerprintstring
voterEmailstringoptional

Returns

Promise<ApiResponse<object>>

Create a new wish (feature request)

Parameters

dataobject

Returns

Promise<ApiResponse<Wish>>

Delete a vote

Parameters

voteIdstring

Returns

Promise<ApiResponse<object>>

Get blog categories

Returns

Promise<ApiResponse<BlogCategory[]>>

Get a single blog post by slug

Parameters

slugstring

Returns

Promise<ApiResponse<BlogPost>>

Get public blog posts with optional filters

Parameters

filtersBlogFiltersoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by category slug

Parameters

categorySlugstring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get blog posts by tag

Parameters

tagstring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Get comments for a wish

Parameters

wishIdstring
optionsobjectoptional

Returns

Promise<ApiResponse<CommentsResponse>>

Get a contact form by ID via portal endpoint

Parameters

formIdstring

Returns

Promise<ApiResponse<ContactForm>>

Get a help article by slug

Parameters

slugstring
flowIdstring

Returns

Promise<ApiResponse<HelpArticle>>

Get help center collection for the project

Returns

Promise<ApiResponse<object>>

Get a help flow by slug

Parameters

slugstring

Returns

Promise<ApiResponse<HelpFlow>>

Get all public page data in one request

Returns

Promise<ApiResponse<object>>

Get a public contact form by ID (legacy endpoint)

Deprecated. Use getContactForm instead

Parameters

formIdstring

Returns

Promise<ApiResponse<ContactForm>>

Get public status page overview (services, active updates, overall status)

Parameters

slugstringoptional

Returns

Promise<ApiResponse<StatusPageOverview>>

Get a public survey by slug

Parameters

slugstring

Returns

Promise<ApiResponse<Survey & object>>

Get survey customization settings

Parameters

surveyIdstring

Returns

Promise<ApiResponse<Record<string, unknown>>>

Get public wishes for the project

Parameters

filtersWishFiltersoptional

Returns

Promise<ApiResponse<WishesResponse>>

Get related blog posts for a given post

Parameters

slugstring

Returns

Promise<ApiResponse<BlogPost[]>>

Get a single release by slug

Parameters

releaseSlugstring

Returns

Promise<ApiResponse<Release>>

Get features for a release (public endpoint)

Parameters

releaseSlugstring

Returns

Promise<ApiResponse<ReleaseFeature[]>>

Get public releases for the project

Parameters

optionsobjectoptional

Returns

Promise<ApiResponse<Release[]>>

Get roadmap data for the project

Returns

Promise<ApiResponse<RoadmapData>>

Get a specific support ticket using magic link token

Parameters

ticketIdstring
tokenstring

Returns

Promise<ApiResponse<SupportRequest>>

Get the total count of users on the waitlist

Returns

Promise<ApiResponse<WaitlistCount>>

Get a single wish by ID

Parameters

wishIdstring

Returns

Promise<ApiResponse<Wish>>

Join the waitlist

Parameters

dataWaitlistJoinInput

Returns

Promise<ApiResponse<WaitlistEntry>>

Leave the waitlist

Parameters

emailstring

Returns

Promise<ApiResponse<object>>

Search blog posts

Parameters

querystring
optionsobjectoptional

Returns

Promise<ApiResponse<BlogPostsResponse>>

Submit a contact form

Parameters

projectIdstring
formIdstring
dataContactFormSubmitInput

Returns

Promise<ApiResponse<ContactFormSubmission>>

Submit a support request

Parameters

dataSupportRequestInput

Returns

Promise<ApiResponse<SupportRequest>>

Submit a survey response

Parameters

surveyIdstring
dataSurveySubmitInput

Returns

Promise<ApiResponse<SurveyResponse>>

Track a contact form view (call when form is displayed)

Parameters

formIdstring

Returns

Promise<ApiResponse<object>>

Upload a file via public portal (no auth required)

Parameters

fileFile

Returns

Promise<ApiResponse<object>>

Verify magic link token and get user's support tickets

Parameters

tokenstring

Returns

Promise<ApiResponse<object>>

Interfaces

interface

ApiResponse

API Response wrapper

Properties

dataToptional
errorobjectoptional
successboolean

AppgramClient API client for Appgram portal/public endpoints. Adapted from the main app's api.ts for use in the SDK.

Properties

baseUrlstring
orgSlugstringoptional
projectIdstring
projectSlugstringoptional
interface

AppgramConfig

Properties

apiUrlstringoptional

Optional API URL override (defaults to https://api.appgram.dev)

enableFingerprintingbooleanoptional

Enable browser fingerprinting for anonymous voting

orgSlugstringoptional

Organization slug (used for public URLs)

projectIdstring

Your Appgram project ID

projectSlugstringoptional

Project slug (used for public URLs)

themeAppgramThemeoptional

Theme customization

Properties

clientAppgramClient

The API client instance

configRequired<Pick<AppgramConfig, "projectId">> & AppgramConfig

The Appgram configuration

fingerprintstring | null

Browser fingerprint for anonymous voting

themeAppgramTheme

Theme values

AppgramProvider Root provider component that manages configuration, API client, and theming.

Properties

childrenReactNode

Child components

configAppgramConfig

Appgram configuration

interface

AppgramTheme

Properties

borderRadiusnumberoptional
colorsPartial<CustomColors>optional

Light mode colors (used when mode is 'light' or system is light)

darkColorsPartial<CustomColors>optional

Dark mode colors (used when mode is 'dark' or system is dark) If not provided, will auto-generate from light colors

modeThemeModeoptional

Theme mode - 'light', 'dark', or 'system' (default: 'system')

typographyPartial<CustomTypography>optional
interface

BlogCardProps

Properties

classNamestringoptional

Additional CSS classes

onClick(post: BlogPost) => voidoptional

Called when the card is clicked

postBlogPost

The blog post to display

variant"default" | "compact" | "featured"optional

Card variant

interface

BlogCategory

Blog/Resources Types

Properties

colorstring | nulloptional
descriptionstring | nulloptional
idstring
namestring
post_countnumberoptional
slugstring
interface

BlogFilters

Properties

category_slugstringoptional
is_featuredbooleanoptional
pagenumberoptional
per_pagenumberoptional
searchstringoptional
tagstringoptional
interface

BlogListProps

Properties

categoriesBlogCategory[]optional

List of categories for filtering

classNamestringoptional

Additional CSS classes

isLoadingbooleanoptional

Loading state

onCategoryChange(category: string | null) => voidoptional

Called when a category is selected

onPageChange(page: number) => voidoptional

Called when page changes

onPostClick(post: BlogPost) => voidoptional

Called when a post is clicked

onSearchChange(query: string) => voidoptional

Called when search query changes

pagenumberoptional

Current page

postsBlogPost[]

List of blog posts to display

renderEmpty() => ReactNodeoptional

Custom empty state component

renderLoading() => ReactNodeoptional

Custom loading component

searchQuerystringoptional

Search query

selectedCategorystring | nulloptional

Currently selected category

showCategoriesbooleanoptional

Show category filter

showSearchbooleanoptional

Show search input

totalPagesnumberoptional

Total pages

variant"grid" | "list"optional

Grid variant

interface

BlogPost

Properties

author_namestring | nulloptional
categoryobjectoptional
category_idstring | nulloptional
contentstring
created_atstring
excerptstring | nulloptional
idstring
is_featuredboolean
meta_descriptionstring | nulloptional
og_image_urlstring | nulloptional
project_idstring
published_atstring
slugstring
tagsstring[]
titlestring
updated_atstring
view_countnumber

BlogPostDetail Component Displays a single blog post's full content with styling.

Properties

classNamestringoptional

Additional CSS classes

onBack() => voidoptional

Back button click handler

onRelatedPostClick(post: BlogPost) => voidoptional

Called when a related post is clicked

postBlogPostoptional

The blog post to display (either pass post object or postSlug)

postSlugstringoptional

Post slug to fetch (alternative to passing post object)

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showBackButtonbooleanoptional

Show back button

showRelatedPostsbooleanoptional

Show related posts section

Properties

dataBlogPost[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

BlogProps

Blog Component Full-featured blog component with list and detail views. Manages internal state for navigation between posts.

Properties

classNamestringoptional

Additional CSS classes

initialCategorystringoptional

Initial category filter

initialSearchstringoptional

Initial search query

onBackToList() => voidoptional

Called when navigating back to list

onPostView(post: BlogPost) => voidoptional

Called when a post is viewed

postsPerPagenumberoptional

Posts per page

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showCategoriesbooleanoptional

Show category filter

showRelatedPostsbooleanoptional

Show related posts on detail view

showSearchbooleanoptional

Show search input

variant"grid" | "list"optional

Grid variant for list view

interface

Category

Properties

colorstring
descriptionstring | nulloptional
iconstring | nulloptional
idstring
namestring
slugstring
wish_countnumberoptional
interface

ChatSource

Properties

article_idstring
flow_idstringoptional
flow_slugstringoptional
similaritynumber
slugstring
titlestring
type"help_article" | "blog_post"optional

Source type - determines routing behavior

Properties

accentColorstringoptional

Accent color for the widget (used for links, send button, avatar accents)

agentNamestringoptional

Name of the chat agent

apiUrlstringoptional

API URL for the help center

classNamestringoptional

Custom class name

colorsChatWidgetColorsoptional

Color customization options

fontSizestringoptional

Base font size for the widget Can be 'sm' (12px), 'base' (14px), 'lg' (16px), or a custom value like '13px' or '0.875rem'

greetingstringoptional

Initial greeting message

logoUrlstringoptional

Logo URL for the agent avatar

onArticleClick(slug: string, source: ChatSource) => voidoptional

Callback when an article source is clicked. Provides the article slug and full source data for flexible routing.

onSupportClick() => voidoptional

Callback when support button is clicked

optionsChatOption[]optional

Quick reply options shown initially

projectIdstring

Project ID for API calls

subtitlestringoptional

Subtitle shown below greeting

interface

Comment

Properties

author_avatar_urlstring | nulloptional
author_namestring
author_type"user" | "team_member" | "anonymous"
author_user_idstring | nulloptional
contentstring
created_atstring
idstring
is_deletedboolean
is_officialboolean
parent_idstring | nulloptional
repliesComment[]optional
reply_countnumber
updated_atstring
wish_idstring
interface

CommentAuthor

Comment Types

Properties

avatar_urlstring | nulloptional
namestring

Properties

author_emailstringoptional
author_namestringoptional
contentstring
parent_idstringoptional
wish_idstring

Properties

dataComment[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

ContactForm

Properties

createdAtstringoptional
descriptionstringoptional
emailRecipientstring
emailSubjectstring
enabledboolean
fieldsContactFormField[]
idstring
integrationContactFormIntegrationoptional

Integration settings for form submission

namestring
submitButtonTextstring
successMessagestring
updatedAtstringoptional

Properties

idstring
labelstring
optionsstring[]optional
placeholderstringoptional
requiredboolean
typeContactFormFieldType
validationContactFormFieldValidationoptional

Properties

maxLengthnumberoptional
minLengthnumberoptional
patternstringoptional

ContactFormRenderer Component Renders a contact form based on its field configuration. Supports: text, email, textarea, select, radio, checkbox fields with validation.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Optional description override

formIdstring

Form ID to load

onError(error: string) => voidoptional

Called on submission error

onSuccess() => voidoptional

Called when the form is submitted successfully

projectIdstring

Project ID for submission

titlestringoptional

Optional title override

Properties

dataRecord<string, string | boolean>
form_idstring
idstring
project_idstring
submitted_atstring

Properties

dataRecord<string, string | boolean>
metadataRecord<string, unknown>optional
interface

CustomColors

Customization & Theme Types

Properties

accentstring
backgroundstring
borderstringoptional
cardBackgroundstringoptional
cardTextstringoptional
infostringoptional
infoSubtlestringoptional
mutedstringoptional
mutedForegroundstringoptional
navbarBackgroundstringoptional
navbarTextstringoptional
primarystring
secondarystring
successstringoptional
successSubtlestringoptional
textstring
warningstringoptional
warningSubtlestringoptional

Properties

fontFamilystringoptional
fontSizesobjectoptional
interface

HelpArticle

Properties

article_typeArticleType
contentstring
created_atstring
excerptstring | nulloptional
flow_idstring
idstring
is_publishedboolean
published_atstring | nulloptional
slugstring
sort_ordernumber
titlestring
updated_atstring

HelpArticleDetail Component Displays a single help article's content with glassmorphism styling.

Properties

articleHelpArticleoptional

The article to display (either pass article object or articleSlug + flowId)

articleSlugstringoptional

Article slug to fetch (alternative to passing article object)

classNamestringoptional

Custom class name

flowHelpFlowoptional

The parent flow (for context)

flowIdstringoptional

Flow ID for fetching article (required if using articleSlug)

onBack() => voidoptional

Back button click handler

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showBackButtonbooleanoptional

Show back button

showMetadatabooleanoptional

Show article metadata (date, type)

HelpArticles Component Displays articles within a selected help flow with glassmorphism styling.

Properties

classNamestringoptional

Custom class name

flowHelpFlowoptional

The flow to display articles for (either pass flow object or flowSlug)

flowSlugstringoptional

Flow slug to fetch (alternative to passing flow object)

onArticleClick(article: HelpArticle) => voidoptional

Click handler for articles

onBack() => voidoptional

Back button click handler

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showBackButtonbooleanoptional

Show back button

showSearchbooleanoptional

Show search input

Properties

dataHelpArticle[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber

Properties

collectionHelpCollection | null
flowsHelpFlow[]

HelpCenter Component Complete help center with navigation between collections, articles, and article detail. Handles all state management internally for a seamless user experience.

Properties

classNamestringoptional

Custom class name

contactSupportUrlstringoptional

Contact support URL

descriptionstringoptional

Page description

featuredArticlesHelpArticle[]optional

Featured articles to display on the main view

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

onArticleClick(article: HelpArticle, flow: HelpFlow | null) => voidoptional

External callback when article is clicked (for custom routing) If not provided, internal navigation is used

onFlowClick(flow: HelpFlow) => voidoptional

External callback when flow is clicked (for custom routing) If not provided, internal navigation is used

onLiveChatClick() => voidoptional

Live chat handler

quickActionsQuickAction[]optional

Quick action buttons to display

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showFooterbooleanoptional

Show contact support footer

showSearchbooleanoptional

Show search input

useExternalRoutingbooleanoptional

Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onFlowClick/onArticleClick

variant"grid" | "list"optional

Layout variant for collections

Properties

created_atstring
descriptionstring | nulloptional
flowsHelpFlow[]optional
idstring
is_liveboolean
namestring
project_idstring
updated_atstring
versionstring

Properties

classNamestringoptional

Custom class name

contactSupportUrlstringoptional

Contact support URL

descriptionstringoptional

Page description

featuredArticlesHelpArticle[]optional

Featured articles to display

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

onArticleClick(article: HelpArticle, flow: HelpFlow) => voidoptional

Click handler for articles

onFlowClick(flow: HelpFlow) => voidoptional

Click handler for flows

onLiveChatClick() => voidoptional

Live chat handler

quickActionsQuickAction[]optional

Quick action buttons to display

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderFlow(flow: HelpFlow) => ReactNodeoptional

Custom render function for flows

renderLoading() => ReactNodeoptional

Custom render function for loading state

showFooterbooleanoptional

Show contact support footer

showSearchbooleanoptional

Show search input

variant"grid" | "list"optional

Layout variant

interface

HelpFlow

Properties

articlesHelpArticle[]optional
collection_idstring
colorstring | nulloptional
created_atstring
descriptionstring | nulloptional
display_typeFlowDisplayType
iconstring | nulloptional
idstring
namestring
slugstring
sort_ordernumber
updated_atstring

Properties

created_atstring
idstring
messagestring
statusIncidentStatus
interface

LayoutConfig

Properties

borderRadiusnumberoptional
cardStyleobjectoptional

Paginated response wrapper

Properties

dataT[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

QuickAction

HelpCollections Component Modern help center with glassmorphism style, quick actions, and grid layout. Adapted from HelpCenterGlass variant.

Properties

iconanyoptional
labelstring
onClick() => void
interface

Release

Properties

author_user_idstring
contentstring
cover_image_urlstring | nulloptional
created_atstring
excerptstring | nulloptional
featuresReleaseFeature[]optional
idstring
is_publishedboolean
itemsReleaseItem[]optional
labelsstring[]
project_idstring
published_atstring | nulloptional
slugstring
titlestring
updated_atstring
versionstring | nulloptional
wish_idsstring[]

ReleaseCard Component A card component for displaying a single release/changelog entry.

Properties

classNamestringoptional

Custom class name

onClick() => voidoptional

Click handler

releaseRelease

The release data

showCoverImagebooleanoptional

Show cover image

showDatebooleanoptional

Show date

showLabelsbooleanoptional

Show labels

ReleaseDetail Component Displays a single release's full content with glassmorphism styling.

Properties

classNamestringoptional

Custom class name

onBack() => voidoptional

Back button click handler

releaseReleaseoptional

The release to display (either pass release object or releaseSlug)

releaseSlugstringoptional

Release slug to fetch (alternative to passing release object)

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

showBackButtonbooleanoptional

Show back button

Properties

descriptionstring
idstring
image_urlstring | nulloptional
release_idstring
sort_ordernumber
titlestring

ReleaseList Component Modern changelog with animations. Adapted from ReleasesModern variant.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Page description

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

limitnumberoptional

Maximum number of releases to show

onReleaseClick(release: Release) => voidoptional

Click handler for releases

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

renderRelease(release: Release, index: number) => ReactNodeoptional

Custom render function for releases

variant"compact" | "timeline" | "cards"optional

Layout variant

interface

ReleasesProps

Releases Component Complete releases/changelog with navigation between list and detail views. Handles all state management internally for a seamless user experience.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Page description

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

limitnumberoptional

Maximum number of releases to show

onReleaseClick(release: Release) => voidoptional

External callback when release is clicked (for custom routing) If not provided, internal navigation is used

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

useExternalRoutingbooleanoptional

Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onReleaseClick

variant"compact" | "timeline" | "cards"optional

Layout variant for list

Properties

dataRelease[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

Roadmap

Properties

columnsRoadmapColumn[]optional
created_atstring
descriptionstring | nulloptional
idstring
is_defaultboolean
namestring
project_idstring
show_commentsboolean
show_vote_countsboolean
updated_atstring
visibilityRoadmapVisibility

RoadmapBoard Component Modern glassmorphism kanban board with animations for displaying product roadmap. Adapted from RoadmapModern variant.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Page description

developersNotestringoptional

Developer's note

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

onItemClick(item: RoadmapItem) => voidoptional

Click handler for items

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds

renderColumn(column: RoadmapColumn) => ReactNodeoptional

Custom render function for columns

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderItem(item: RoadmapItem) => ReactNodeoptional

Custom render function for items

renderLoading() => ReactNodeoptional

Custom render function for loading state

showCommentsbooleanoptional

Show comment counts

showVoteCountsbooleanoptional

Show vote counts on items

variant"list" | "timeline" | "kanban"optional

Layout variant

RoadmapColumn Component A single column in the roadmap board.

Properties

classNamestringoptional

Custom class name

columnRoadmapColumn

The column data

onItemClick(item: RoadmapItem) => voidoptional

Click handler for items

renderItem(item: RoadmapItem) => ReactNodeoptional

Custom render function for items

showVoteCountsbooleanoptional

Show vote counts on items

Properties

colorstring
created_atstring
idstring
itemsRoadmapItem[]optional
namestring
roadmap_idstring
sort_ordernumber
updated_atstring
wip_limitnumber | nulloptional
interface

RoadmapData

Properties

columnsRoadmapColumn[]
customizationobject | nulloptional
roadmapRoadmap | null
total_itemsnumber
interface

RoadmapItem

Properties

colorstring | nulloptional
column_idstring
created_atstring
descriptionstring | nulloptional
idstring
roadmap_idstring
sort_ordernumber
target_datestring | nulloptional
titlestring
updated_atstring
wishWish | nulloptional
wish_idstring | nulloptional

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Page description

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

maxPastIncidentsnumberoptional

Max number of past incidents to show

onIncidentClick(incident: StatusIncident) => voidoptional

Click handler for incidents

renderComponent(component: StatusComponent) => ReactNodeoptional

Custom render for component

renderIncident(incident: StatusIncident) => ReactNodeoptional

Custom render for incident

renderOverallStatus(status: OverallStatus) => ReactNodeoptional

Custom render for overall status

showComponentDescriptionsbooleanoptional

Show component descriptions

showIncidentHistorybooleanoptional

Show incident history

statusStatusData

Status data to display

Properties

descriptionstringoptional
groupstringoptional
idstring
namestring
statusComponentStatus
interface

StatusData

Properties

componentsStatusComponent[]
incidentsStatusIncident[]
last_updatedstringoptional
overall_statusOverallStatus

Properties

affected_componentsstring[]optional
created_atstring
idstring
impactIncidentImpact
resolved_atstring | nulloptional
statusIncidentStatus
titlestring
updatesIncidentUpdate[]

StatusIncidentDetail Component Displays a single incident's full details with timeline of updates.

Properties

classNamestringoptional

Custom class name

incidentStatusIncident

The incident to display

onBack() => voidoptional

Back button click handler

showAffectedComponentsbooleanoptional

Show affected components

showBackButtonbooleanoptional

Show back button

interface

StatusPage

Properties

created_atstring
descriptionstring | null
idstring
is_activeboolean
namestring
project_idstring
slugstring
updated_atstring

Properties

active_countnumber
active_updatesStatusUpdate[]
current_statusStatusType
recent_updatesStatusUpdate[]
resolved_countnumber
servicesStatusPageService[]
services_statusRecord<string, StatusType>
status_breakdownRecord<string, number>
status_pageStatusPage
total_updatesnumber

Properties

colorstring | null
created_atstring
descriptionstring | null
group_namestring | null
idstring
is_activeboolean
namestring
sort_ordernumber
status_page_idstring
updated_atstring

Properties

affected_servicesstring[]
created_atstring
descriptionstring
idstring
is_publicboolean
resolved_atstring | null
stateStatusState
status_page_idstring
status_typeStatusType
titlestring
updated_atstring

SubmitWishForm Component Sheet/modal for submitting new feature requests. Supports auto-detection of custom forms from project customization. Adapted from FeatureRequestForm.

Properties

classNamestringoptional

Custom class name

customFormIdstringoptional

Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests.

descriptionstringoptional

Form description

onError(error: string) => voidoptional

Callback when submission fails

onOpenChange(open: boolean) => void

Callback when open state changes

onSuccess(wish: Wish) => voidoptional

Callback when wish is successfully submitted

openboolean

Whether the form is open

submitButtonTextstringoptional

Submit button text

titlestringoptional

Form title

Properties

mime_typestringoptional
namestring
sizenumber
urlstring

SupportForm Component Modern support form with animations for submitting and tracking support tickets. Adapted from SupportModern variant.

Properties

accessTokenstringoptional

Access token for viewing tickets (from magic link)

checkDescriptionstringoptional

Check status section description

checkTitlestringoptional

Check status section title

classNamestringoptional

Custom class name

customFormIdstringoptional

Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets.

descriptionstringoptional

Page description

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

onCheckStatus(email: string) => voidoptional

Callback when checking status (optional - uses magic link by default)

onSubmitError(error: string) => voidoptional

Callback when submission fails

onSubmitSuccess(ticket: SupportRequest) => voidoptional

Callback when ticket is successfully submitted

onTicketClick(ticket: SupportRequest) => voidoptional

Callback when a ticket is clicked

showAttachmentsbooleanoptional

Show file attachments

showCategorybooleanoptional

Show category selector

showCheckStatusbooleanoptional

Show check status tab

showNamebooleanoptional

Show name field

submitButtonTextstringoptional

Submit button text

submitDescriptionstringoptional

Submit section description

submitTitlestringoptional

Submit section title

Properties

attachmentsSupportAttachment[]optional
author_emailstring | nulloptional
author_namestring | nulloptional
author_type"user" | "team_member"
author_user_idstring | nulloptional
contentstring
created_atstring
idstring
is_internalboolean
support_request_idstring

Properties

assignee_idstring | nulloptional
attachmentsSupportAttachment[]optional
categorySupportRequestCategory | nulloptional
created_atstring
descriptionstring
idstring
message_countnumber
messagesSupportMessage[]optional
prioritySupportRequestPriority | nulloptional
project_idstring
resolved_atstring | nulloptional
statusSupportRequestStatus
subjectstring
updated_atstring
user_emailstring
user_namestring | nulloptional

Properties

attachmentsFile[]optional
categorySupportRequestCategoryoptional
descriptionstring
external_user_idstringoptional
subjectstring
user_emailstring
user_namestringoptional

Properties

dataSupportRequest[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

Survey

Survey

Properties

created_atstring
descriptionstring
idstring
is_activeboolean
namestring
nodesSurveyNode[]optional
number_of_questionsnumberoptional
number_of_responsesnumberoptional
project_idstring
responsesSurveyResponse[]optional
slugstring
updated_atstring
interface

SurveyAnswer

Survey Answer

Properties

answerbooleanoptional
answer_optionsstring[]optional
answer_ratingnumberoptional
answer_textstringoptional
created_atstring
idstring
nodeobjectoptional
node_idstring
response_idstring
interface

SurveyNode

Survey Node Individual questions or result nodes in a survey decision tree.

Properties

answer_no_node_idstring | null
answer_yes_node_idstring | null
branchesSurveyNodeBranch[]optional
created_atstring
idstring
is_requiredbooleanoptional
max_ratingnumberoptional
min_ratingnumberoptional
next_node_idstring | nulloptional
optionsSurveyNodeOption[]optional
parent_idstring | null
questionstring
question_typeSurveyQuestionType
result_messagestring | null
sort_ordernumber
survey_idstring
updated_atstring

Survey Node Branch Conditional branching configuration for decision tree logic.

Properties

conditionobject
next_node_idstring

Survey Node Option

Properties

labelstring
valuestring

SurveyRenderer Component Renders survey questions step-by-step with branching logic. Supports all 6 question types: yes_no, short_answer, paragraph, multiple_choice, checkboxes, rating.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Optional description override

externalUserIdstringoptional

External user ID to attach to the response

metadataRecord<string, unknown>optional

Additional metadata to attach to the response

onComplete() => voidoptional

Called when the survey is submitted successfully

onError(error: string) => voidoptional

Called on submission error

slugstring

Survey slug to load

titlestringoptional

Optional title override

Survey Response

Properties

answersSurveyAnswer[]optional
created_atstring
external_user_idstring | null
fingerprintstring
idstring
metadataRecord<string, unknown>
survey_idstring

Input for submitting a survey response

Properties

answersobject[]
external_user_idstringoptional
fingerprintstring
metadataRecord<string, unknown>optional

Properties

skipbooleanoptional

Skip initial fetch

Properties

categoriesBlogCategory[]

List of blog categories

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

Properties

skipbooleanoptional

Skip initial fetch

slugstring

The blog post slug to fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

postBlogPost | null

The blog post data

refetch() => Promise<void>

Manually refetch data

relatedPostsBlogPost[]

Related posts

useBlog Hooks Fetches and manages blog/resources data for custom UI implementations.

Properties

categorystringoptional

Filter by category slug

featuredbooleanoptional

Only featured posts

per_pagenumberoptional

Items per page

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds

searchstringoptional

Search query

skipbooleanoptional

Skip initial fetch

tagstringoptional

Filter by tag

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

pagenumber

Current page number

postsBlogPost[]

List of blog posts

refetch() => Promise<void>

Manually refetch data

setFilters(filters: Partial<UseBlogPostsOptions>) => void

Update filters

setPage(page: number) => void

Set the current page

totalnumber

Total number of posts

totalPagesnumber

Total number of pages

useComments Hook Fetches and manages comments for a wish.

Properties

perPagenumberoptional

Number of comments per page

skipbooleanoptional

Skip initial fetch

wishIdstring

The wish ID to fetch comments for

Properties

commentsComment[]

List of comments

createComment(data: Omit<CommentCreateInput, "wish_id">) => Promise<Comment | null>

Create a new comment

errorstring | null

Error message if any

isCreatingboolean

Loading state for creating a comment

isLoadingboolean

Loading state

nextPage() => void

Go to next page

pagenumber

Current page

prevPage() => void

Go to previous page

refetch() => Promise<void>

Manually refetch data

setPage(page: number) => void

Go to specific page

totalnumber

Total number of comments

totalPagesnumber

Total pages

useContactForm Hook Fetches contact form config and manages form submission.

Properties

enabledbooleanoptional

Whether to fetch the form immediately

trackViewbooleanoptional

Whether to track form views for analytics

Properties

errorstring | null
formContactForm | null
isLoadingboolean
refetch() => Promise<void>

Properties

onError(error: string) => voidoptional
onSuccess(submission: ContactFormSubmission) => voidoptional
rateLimitMsnumberoptional

Rate limit cooldown in milliseconds

Properties

clearMessages() => void
errorstring | null
isRateLimitedboolean
isSubmittingboolean
submitForm(projectId: string, formId: string, data: ContactFormSubmitInput) => Promise<ContactFormSubmission | null>
successMessagestring | null
validateField(value: string, field: object) => string | null

Properties

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

postsBlogPost[]

List of featured blog posts

refetch() => Promise<void>

Manually refetch data

useHelpArticle Hook Fetches a single help article by slug.

Properties

articleSlugstring

The article slug to fetch

flowIdstring

The flow ID the article belongs to

skipbooleanoptional

Skip initial fetch

Properties

articleHelpArticle | null

The article data

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

useHelpCenter Hook Fetches and manages help center data.

Properties

skipbooleanoptional

Skip initial fetch

Properties

collectionHelpCollection | null

Help collection

errorstring | null

Error message if any

flowsHelpFlow[]

Help flows

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

useHelpFlow Hook Fetches a single help flow by slug.

Properties

flowSlugstring

The flow slug to fetch

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

flowHelpFlow | null

The flow data

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

useRelease Hook Fetches a single release by slug.

Properties

releaseSlugstring

The release slug to fetch

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

releaseRelease | null

The release data

useReleases Hook Fetches and manages releases/changelog data for custom UI implementations.

Properties

limitnumberoptional

Maximum number of releases to fetch

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

releasesRelease[]

List of releases

useRoadmap Hook Fetches and manages roadmap data for custom UI implementations.

Properties

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

skipbooleanoptional

Skip initial fetch

Properties

columnsRoadmapColumn[]

Roadmap columns with items

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

roadmapRoadmap | null

Roadmap data

totalItemsnumber

Total number of items

useStatus Hook Fetches status page data and transforms it for the StatusBoard component. Supports auto-refresh polling.

Properties

enabledbooleanoptional

Whether to fetch immediately

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

slugstringoptional

Status page slug

Properties

errorstring | null

Error message

isLoadingboolean

Loading state

overviewStatusPageOverview | null

Raw API overview response

refetch() => Promise<void>

Manually refresh

statusStatusData | null

Transformed status data ready for StatusBoard

useSupport Hook Manages support ticket submissions and access.

Properties

onSubmitError(error: string) => voidoptional

Callback when a submission fails

onSubmitSuccess(ticket: SupportRequest) => voidoptional

Callback when a ticket is successfully submitted

Properties

addMessage(ticketId: string, token: string, content: string) => Promise<object | null>

Add a message to a ticket

clearMessages() => void

Clear any error or success messages

errorstring | null

Error message if any

getTicket(ticketId: string, token: string) => Promise<SupportRequest | null>

Get a specific ticket by ID with token

isSendingMagicLinkboolean

Loading state for magic link request

isSubmittingboolean

Loading state for ticket submission

isVerifyingboolean

Loading state for token verification

requestMagicLink(email: string) => Promise<boolean>

Request a magic link to access tickets

submitTicket(data: SupportRequestInput) => Promise<SupportRequest | null>

Submit a new support ticket

successMessagestring | null

Success message after submitting

verifyToken(token: string) => Promise<object | null>

Verify a magic link token

useSurvey Hook Fetches and manages survey data and response submission.

Properties

enabledbooleanoptional

Whether to fetch the survey immediately

Properties

errorstring | null
isLoadingboolean
nodesSurveyNode[]
refetch() => Promise<void>
surveySurvey | null

Properties

onError(error: string) => voidoptional
onSuccess(response: SurveyResponse) => voidoptional

Properties

clearMessages() => void
errorstring | null
isSubmittingboolean
submitResponse(surveyId: string, data: SurveySubmitInput) => Promise<SurveyResponse | null>
successMessagestring | null

useVote Hook Manages voting state and actions for a wish. Provides optimistic updates for instant UI feedback.

Properties

initialHasVotedbooleanoptional

Initial hasVoted state (optional)

initialVoteCountnumberoptional

Initial vote count (optional, useful when you already have the wish data)

onVoteChange(hasVoted: boolean, voteCount: number) => voidoptional

Callback when vote state changes

skipAutoCheckbooleanoptional

Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction

voterEmailstringoptional

Voter email (optional, for identified voting)

wishIdstring

The wish ID to vote on

interface

UseVoteResult

Properties

errorstring | null

Error message if any

hasVotedboolean

Whether the current user has voted

isCheckingboolean

Loading state for initial vote check

isLoadingboolean

Loading state for vote operations

toggle() => Promise<void>

Toggle vote (vote if not voted, unvote if voted)

unvote() => Promise<void>

Remove a vote

vote() => Promise<void>

Cast a vote

voteCountnumber

Current vote count

useWaitlist Hook Manages waitlist operations: join, leave, check status, and get count.

Properties

emailstringoptional

Email to auto-check waitlist status for on mount

fetchCountOnMountbooleanoptional

Whether to fetch the waitlist count on mount

onJoinError(error: string) => voidoptional

Callback when join fails

onJoinSuccess(entry: WaitlistEntry) => voidoptional

Callback when successfully joined the waitlist

onLeaveError(error: string) => voidoptional

Callback when leave fails

onLeaveSuccess() => voidoptional

Callback when successfully left the waitlist

Properties

checkStatus(email: string) => Promise<WaitlistStatus | null>

Check if an email is on the waitlist

clearMessages() => void

Clear error and success messages

countnumber | null

Total count of users on the waitlist

errorstring | null

Error message if any operation failed

isCheckingStatusboolean

Loading state for status check

isJoiningboolean

Loading state for join operation

isLeavingboolean

Loading state for leave operation

isLoadingboolean

Loading state for initial data fetch

isOnWaitlistboolean | null

Whether the provided email is on the waitlist

join(data: WaitlistJoinInput) => Promise<WaitlistEntry | null>

Join the waitlist

leave(email: string) => Promise<boolean>

Leave the waitlist

refreshCount() => Promise<void>

Refresh the waitlist count

statusWaitlistStatus | null

Current user's waitlist status details

successMessagestring | null

Success message after successful operation

useWishes Hook Fetches and manages a list of wishes with filtering and pagination. Provides headless access to the wishes API for custom UI implementations.

Properties

filtersWishFiltersoptional

Initial filters

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds (0 to disable)

skipbooleanoptional

Skip initial fetch

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

pagenumber

Current page

refetch() => Promise<void>

Manually refetch data

setFilters(filters: WishFilters) => void

Update filters

setPage(page: number) => void

Go to a specific page

totalnumber

Total number of wishes

totalPagesnumber

Total pages

wishesWish[]

List of wishes

useWish Hook Fetches and manages a single wish.

Properties

skipbooleanoptional

Skip initial fetch

wishIdstring

The wish ID to fetch

interface

UseWishResult

Properties

errorstring | null

Error message if any

isLoadingboolean

Loading state

refetch() => Promise<void>

Manually refetch data

wishWish | null

The wish data

interface

Vote

Vote Types

Properties

created_atstring
fingerprintstring
idstring
user_idstring | nulloptional
voter_emailstring | nulloptional
wish_idstring

VoteButton Component A button for voting on wishes with animated feedback.

Related types

Omit<UseVoteOptions, "onVoteChange">

Properties

classNamestringoptional

Custom class name

initialHasVotedbooleanoptional

Initial hasVoted state (optional)

initialVoteCountnumberoptional

Initial vote count (optional, useful when you already have the wish data)

onVoteChange(hasVoted: boolean, voteCount: number) => voidoptional

Callback when vote state changes

renderContent(props: object) => ReactNodeoptional

Custom render function for the button content

showCountbooleanoptional

Show vote count

size"sm" | "md" | "lg"optional

Size variant

skipAutoCheckbooleanoptional

Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction

voterEmailstringoptional

Voter email (optional, for identified voting)

wishIdstring

The wish ID to vote on

Properties

has_votedboolean
vote_idstringoptional

Properties

fingerprintstring
voter_emailstringoptional
wish_idstring
interface

VoteState

Properties

errorstring | nulloptional
hasVotedboolean
isLoadingboolean
voteCountnumber
voteIdstringoptional
interface

WaitlistCount

Waitlist count response

Properties

countnumber

Total number of users on the waitlist

interface

WaitlistEntry

Waitlist entry (returned after joining)

Properties

created_atstring

When the user joined

emailstring

Email address

idstring

Unique ID of the waitlist entry

namestringoptional

Name (if provided)

positionnumberoptional

Position in the waitlist

Input for joining a waitlist

Properties

emailstring

Email address to add to waitlist

metadataRecord<string, unknown>optional

Optional additional metadata

namestringoptional

Optional name of the user

Waitlist status response

Properties

is_on_waitlistboolean

Whether the user/email is on the waitlist

joined_atstringoptional

When the user joined (if on waitlist)

positionnumberoptional

Position in the waitlist (if available)

WhatsNewPopup Component Small popup at bottom of screen showing latest release features with media carousel for images and videos.

Properties

autoPlayIntervalnumberoptional

Auto-play carousel interval in ms (0 to disable)

autoShowbooleanoptional

Auto-show popup on mount if there's a new release Uses localStorage to track seen releases

classNamestringoptional

Custom class name

maxItemsnumberoptional

Maximum number of items to show

onOpenChange(open: boolean) => voidoptional

Callback when open state changes

onViewAll() => voidoptional

Click handler for "View All" button

openbooleanoptional

Whether the popup is open

position"bottom-right" | "bottom-left" | "bottom-center"optional

Position of the popup

showMediabooleanoptional

Show media carousel

showTypes"feature" | "improvement" | "bugfix" | "other"[]optional

Show only specific item types

storageKeystringoptional

localStorage key for tracking seen releases

titlestringoptional

Title for the popup

interface

Wish

Properties

authorWishAuthoroptional
author_emailstring | nulloptional
author_namestring | nulloptional
author_type"user" | "team_member" | "anonymous"
categoryCategory | nulloptional
category_idstring | nulloptional
comment_countnumber
completed_atstring | nulloptional
created_atstring
descriptionstring
has_votedbooleanoptional
idstring
is_pinnedbooleanoptional
priorityWishPriority | nulloptional
project_idstring
slugstring
statusWishStatus
titlestring
updated_atstring
vote_countnumber
interface

WishAuthor

Properties

avatar_urlstring | nulloptional
emailstring | nulloptional
namestring
interface

WishCardProps

WishCard Component Modern glassmorphism card with animations and theming. Adapted from FeedbackModern variant.

Properties

animationIndexnumberoptional

Animation delay index (for staggered animations)

classNamestringoptional

Custom class name

hasVotedbooleanoptional

Override hasVoted state (for optimistic updates)

isVotingbooleanoptional

Loading state for vote

onClick() => voidoptional

Click handler for the card

onCommentClick() => voidoptional

Comment click handler

onVote(wishId: string, hasVoted: boolean, voteCount: number) => voidoptional

Vote handler

renderVoteButton(props: object) => ReactNodeoptional

Custom render function for the vote button

showAuthorbooleanoptional

Show author

showCategorybooleanoptional

Show category badge

showCommentCountbooleanoptional

Show comment count

showStatusbooleanoptional

Show status badge

voteCountnumberoptional

Override vote count (for optimistic updates)

wishWish

The wish data

WishDetail Component Sheet/modal for displaying wish details with voting and comments. Adapted from PublicWishDetail.

Properties

classNamestringoptional

Custom class name

onCommentAdded(comment: Comment) => voidoptional

Callback when a comment is added

onOpenChange(open: boolean) => void

Callback when open state changes

onVote(wishId: string) => voidoptional

Callback when vote is toggled

openboolean

Whether the detail view is open

wishWish | null

The wish to display

Properties

dataWish[]
pagenumber
per_pagenumber
totalnumber
total_pagesnumber
interface

WishFilters

Properties

category_idstringoptional
fingerprintstringoptional
pagenumberoptional
per_pagenumberoptional
priorityWishPriority | WishPriority[]optional
searchstringoptional
sort_by"votes" | "created_at" | "updated_at"optional
sort_order"asc" | "desc"optional
statusWishStatus | WishStatus[]optional
interface

WishListProps

WishList Component Modern glassmorphism list with animations for displaying and voting on feature requests. Adapted from FeedbackModern variant.

Properties

classNamestringoptional

Custom class name

descriptionstringoptional

Page description

filtersWishFiltersoptional

Initial filters

headingstringoptional

Page heading

headingAlignment"left" | "center" | "right"optional

Heading alignment

onAddWish() => voidoptional

Handler for adding a new wish

onWishClick(wish: Wish) => voidoptional

Click handler for a wish

refreshIntervalnumberoptional

Auto-refresh interval in milliseconds

renderEmpty() => ReactNodeoptional

Custom render function for empty state

renderError(error: string, retry: () => void) => ReactNodeoptional

Custom render function for error state

renderLoading() => ReactNodeoptional

Custom render function for loading state

renderWish(wish: Wish, index: number) => ReactNodeoptional

Custom render function for individual wish cards

showSearchbooleanoptional

Show search input

variant"compact" | "cards" | "masonry"optional

Layout variant

ApiResponse

AppgramClientConfig

AppgramConfig

Optional API URL override (defaults to https://api.appgram.dev)

AppgramContextValue

The Appgram configuration

AppgramProviderProps

AppgramTheme

Light mode colors (used when mode is 'light' or system is light)

Dark mode colors (used when mode is 'dark' or system is dark) If not provided, will auto-generate from light colors

Theme mode - 'light', 'dark', or 'system' (default: 'system')

BlogCardProps

Called when the card is clicked

Parameters

postBlogPost

Returns

void

BlogCategory

BlogFilters

BlogListProps

Called when a category is selected

Parameters

categorystring | null

Returns

void

Called when page changes

Parameters

pagenumber

Returns

void

Called when a post is clicked

Parameters

postBlogPost

Returns

void

Called when search query changes

Parameters

querystring

Returns

void

BlogPost

BlogPostDetailProps

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

BlogPostsResponse

BlogProps

Called when a post is viewed

Parameters

postBlogPost

Returns

void

Custom render function for empty state

Returns

ReactNode

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Custom render function for loading state

Returns

ReactNode

Grid variant for list view

Category

ChatSource

Source type - determines routing behavior

ChatWidgetProps

Accent color for the widget (used for links, send button, avatar accents)

Base font size for the widget Can be 'sm' (12px), 'base' (14px), 'lg' (16px), or a custom value like '13px' or '0.875rem'

Callback when an article source is clicked. Provides the article slug and full source data for flexible routing.

Parameters

slugstring
sourceChatSource

Returns

void

Comment

CommentAuthor

CommentCreateInput

CommentsResponse

ContactForm

Integration settings for form submission

ContactFormField

ContactFormFieldValidation

ContactFormRendererProps

ContactFormSubmission

ContactFormSubmitInput

CustomColors

CustomTypography

HelpArticle

HelpArticleDetailProps

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

HelpArticlesProps

The flow to display articles for (either pass flow object or flowSlug)

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

HelpArticlesResponse

HelpCenterData

HelpCenterProps

External callback when article is clicked (for custom routing) If not provided, internal navigation is used

Parameters

articleHelpArticle
flowHelpFlow | null

Returns

void

External callback when flow is clicked (for custom routing) If not provided, internal navigation is used

Parameters

flowHelpFlow

Returns

void

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onFlowClick/onArticleClick

HelpCollection

HelpCollectionsProps

Click handler for articles

Parameters

articleHelpArticle
flowHelpFlow

Returns

void

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Custom render function for flows

Parameters

flowHelpFlow

Returns

ReactNode

HelpFlow

IncidentUpdate

LayoutConfig

PaginatedResponse

QuickAction

Release

ReleaseCardProps

ReleaseDetailProps

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

ReleaseFeature

ReleaseListProps

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Custom render function for releases

Parameters

releaseRelease
indexnumber

Returns

ReactNode

ReleasesProps

External callback when release is clicked (for custom routing) If not provided, internal navigation is used

Parameters

releaseRelease

Returns

void

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Use external routing instead of internal state management Set to true if you want to handle navigation yourself via onReleaseClick

ReleasesResponse

Roadmap

RoadmapBoardProps

Custom render function for columns

Parameters

columnRoadmapColumn

Returns

ReactNode

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Custom render function for items

Parameters

itemRoadmapItem

Returns

ReactNode

RoadmapColumnProps

Custom render function for items

Parameters

itemRoadmapItem

Returns

ReactNode

RoadmapColumnType

RoadmapData

RoadmapItem

StatusBoardProps

Click handler for incidents

Parameters

incidentStatusIncident

Returns

void

Custom render for component

Parameters

componentStatusComponent

Returns

ReactNode

Custom render for incident

Parameters

incidentStatusIncident

Returns

ReactNode

Custom render for overall status

Parameters

statusOverallStatus

Returns

ReactNode

StatusComponent

StatusData

StatusIncident

StatusIncidentDetailProps

StatusPage

StatusPageOverview

StatusPageService

StatusUpdateApi

SubmitWishFormProps

Custom form ID to use instead of default form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'wish' to create feature requests.

Callback when submission fails

Parameters

errorstring

Returns

void

Callback when wish is successfully submitted

Parameters

wishWish

Returns

void

SupportAttachment

SupportFormProps

Custom contact form ID to use instead of default support form. When provided, fetches the form config and renders its fields dynamically. The form should have integration.type = 'support' to create tickets.

Callback when checking status (optional - uses magic link by default)

Parameters

emailstring

Returns

void

Callback when ticket is successfully submitted

Parameters

ticketSupportRequest

Returns

void

Callback when a ticket is clicked

Parameters

ticketSupportRequest

Returns

void

SupportMessage

SupportRequest

SupportRequestInput

SupportRequestsResponse

Survey

SurveyAnswer

SurveyNode

SurveyNodeBranch

SurveyNodeOption

SurveyRendererProps

SurveyResponse

SurveySubmitInput

UseBlogCategoriesOptions

UseBlogCategoriesResult

UseBlogPostOptions

UseBlogPostResult

UseBlogPostsOptions

UseBlogPostsResult

Update filters

Parameters

filtersPartial<UseBlogPostsOptions>

Returns

void

UseCommentsOptions

UseCommentsResult

Create a new comment

Parameters

dataOmit<CommentCreateInput, "wish_id">

Returns

Promise<Comment | null>

UseContactFormOptions

UseContactFormResult

UseContactFormSubmitOptions

UseContactFormSubmitResult

Parameters

projectIdstring
formIdstring
dataContactFormSubmitInput

Returns

Promise<ContactFormSubmission | null>

UseFeaturedPostsOptions

UseFeaturedPostsResult

UseHelpArticleOptions

UseHelpArticleResult

UseHelpCenterOptions

UseHelpCenterResult

UseHelpFlowOptions

UseHelpFlowResult

UseReleaseOptions

UseReleaseResult

UseReleasesOptions

UseReleasesResult

UseRoadmapOptions

UseRoadmapResult

UseStatusOptions

UseStatusResult

Transformed status data ready for StatusBoard

UseSupportOptions

Callback when a ticket is successfully submitted

Parameters

ticketSupportRequest

Returns

void

UseSupportResult

Add a message to a ticket

Parameters

ticketIdstring
tokenstring
contentstring

Returns

Promise<object | null>

Get a specific ticket by ID with token

Parameters

ticketIdstring
tokenstring

Returns

Promise<SupportRequest | null>

Submit a new support ticket

Parameters

dataSupportRequestInput

Returns

Promise<SupportRequest | null>

Verify a magic link token

Parameters

tokenstring

Returns

Promise<object | null>

UseSurveyOptions

UseSurveyResult

UseSurveySubmitOptions

UseSurveySubmitResult

Parameters

surveyIdstring
dataSurveySubmitInput

Returns

Promise<SurveyResponse | null>

UseVoteOptions

Callback when vote state changes

Parameters

hasVotedboolean
voteCountnumber

Returns

void

Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction

UseVoteResult

Toggle vote (vote if not voted, unvote if voted)

Returns

Promise<void>

UseWaitlistOptions

Callback when successfully joined the waitlist

Parameters

entryWaitlistEntry

Returns

void

UseWaitlistResult

Check if an email is on the waitlist

Parameters

emailstring

Returns

Promise<WaitlistStatus | null>

Join the waitlist

Parameters

dataWaitlistJoinInput

Returns

Promise<WaitlistEntry | null>

Leave the waitlist

Parameters

emailstring

Returns

Promise<boolean>

UseWishesOptions

UseWishesResult

Update filters

Parameters

filtersWishFilters

Returns

void

Go to a specific page

Parameters

pagenumber

Returns

void

UseWishOptions

UseWishResult

Manually refetch data

Returns

Promise<void>

Vote

property

Vote.id

VoteButtonProps

Callback when vote state changes

Parameters

hasVotedboolean
voteCountnumber

Returns

void

Custom render function for the button content

Parameters

propsobject

Returns

ReactNode

Skip automatic vote check on mount to avoid rate limiting When true, vote status will be checked lazily on first interaction

VoteCheckResponse

VoteCreateInput

VoteState

WaitlistCount

WaitlistEntry

WaitlistJoinInput

WaitlistStatus

WhatsNewPopupProps

Auto-show popup on mount if there's a new release Uses localStorage to track seen releases

Wish

property

Wish.id

WishAuthor

WishCardProps

Vote handler

Parameters

wishIdstring
hasVotedboolean
voteCountnumber

Returns

void

Custom render function for the vote button

Parameters

propsobject

Returns

ReactNode

WishDetailProps

Callback when a comment is added

Parameters

commentComment

Returns

void

Callback when open state changes

Parameters

openboolean

Returns

void

Callback when vote is toggled

Parameters

wishIdstring

Returns

void

WishesResponse

WishFilters

WishListProps

Click handler for a wish

Parameters

wishWish

Returns

void

Custom render function for error state

Parameters

errorstring
retry() => void

Returns

ReactNode

Custom render function for individual wish cards

Parameters

wishWish
indexnumber

Returns

ReactNode

Types

Help Center Types

Contact Form Types Configurable contact forms for collecting user submissions.

type

Form

StatusBoard Component Modern system status page with service health indicators and incident tracking. Adapted from StatusModern variant.

Status Page Types Types for status page API responses.

Theme mode - 'light', 'dark', or 'system' (follows OS preference)

Wish (Feature Request) Types

Components

AppgramProvider - Root provider for Appgram React SDK Supports automatic dark/light theme based on system preference.

Parameters

__namedParametersAppgramProviderProps

Returns

ReactElement
function

Blog

Parameters

__namedParametersBlogProps

Returns

ReactElement
function

BlogCard

Parameters

__namedParametersBlogCardProps

Returns

Element
function

BlogList

Parameters

__namedParametersBlogListProps

Returns

Element

Parameters

__namedParametersBlogPostDetailProps

Returns

any
function

ChatWidget

Parameters

__namedParametersChatWidgetProps

Returns

ReactElement

Parameters

__namedParametersContactFormRendererProps

Returns

ReactElement

Parameters

__namedParametersHelpArticleDetailProps

Returns

any
function

HelpArticles

Parameters

__namedParametersHelpArticlesProps

Returns

any
function

HelpCenter

Parameters

__namedParametersHelpCenterProps

Returns

ReactElement

Parameters

__namedParametersHelpCollectionsProps

Returns

ReactElement
function

ReleaseCard

Parameters

__namedParametersReleaseCardProps

Returns

ReactElement

Parameters

__namedParametersReleaseDetailProps

Returns

any
function

ReleaseList

Parameters

__namedParametersReleaseListProps

Returns

ReactElement
function

Releases

Parameters

__namedParametersReleasesProps

Returns

ReactElement
function

RoadmapBoard

Parameters

__namedParametersRoadmapBoardProps

Returns

ReactElement

Parameters

__namedParametersRoadmapColumnProps

Returns

ReactElement
function

StatusBoard

Parameters

__namedParametersStatusBoardProps

Returns

ReactElement

Parameters

__namedParametersStatusIncidentDetailProps

Returns

ReactElement

Parameters

__namedParametersSubmitWishFormProps

Returns

ReactElement
function

SupportForm

Parameters

__namedParametersSupportFormProps

Returns

ReactElement

Parameters

__namedParametersSurveyRendererProps

Returns

ReactElement
function

VoteButton

Parameters

__namedParametersVoteButtonProps

Returns

ReactElement

Parameters

__namedParametersWhatsNewPopupProps

Returns

any
function

WishCard

Parameters

__namedParametersWishCardProps

Returns

ReactElement
function

WishDetail

Parameters

__namedParametersWishDetailProps

Returns

any
function

WishList

Parameters

__namedParametersWishListProps

Returns

ReactElement

Hooks

Hook to access the Appgram context

Errors

Error

if used outside of AppgramProvider

Returns

AppgramContextValue

Parameters

optionsUseBlogCategoriesOptionsoptional

Returns

UseBlogCategoriesResult
function

useBlogPost

Parameters

optionsUseBlogPostOptions

Returns

UseBlogPostResult
function

useBlogPosts

Parameters

optionsUseBlogPostsOptionsoptional

Returns

UseBlogPostsResult
function

useComments

Parameters

optionsUseCommentsOptions

Returns

UseCommentsResult

Parameters

formIdstring
optionsUseContactFormOptionsoptional

Returns

UseContactFormResult

Parameters

optionsUseContactFormSubmitOptionsoptional

Returns

UseContactFormSubmitResult

Parameters

optionsUseFeaturedPostsOptionsoptional

Returns

UseFeaturedPostsResult

Parameters

optionsUseHelpArticleOptions

Returns

UseHelpArticleResult

Parameters

optionsUseHelpCenterOptionsoptional

Returns

UseHelpCenterResult
function

useHelpFlow

Parameters

optionsUseHelpFlowOptions

Returns

UseHelpFlowResult
function

useRelease

Parameters

optionsUseReleaseOptions

Returns

UseReleaseResult
function

useReleases

Parameters

optionsUseReleasesOptionsoptional

Returns

UseReleasesResult
function

useRoadmap

Parameters

optionsUseRoadmapOptionsoptional

Returns

UseRoadmapResult
function

useStatus

Parameters

optionsUseStatusOptionsoptional

Returns

UseStatusResult
function

useSupport

Parameters

optionsUseSupportOptionsoptional

Returns

UseSupportResult
function

useSurvey

Parameters

slugstring
optionsUseSurveyOptionsoptional

Returns

UseSurveyResult

Parameters

optionsUseSurveySubmitOptionsoptional

Returns

UseSurveySubmitResult
function

useVote

Parameters

optionsUseVoteOptions

Returns

UseVoteResult
function

useWaitlist

Parameters

optionsUseWaitlistOptionsoptional

Returns

UseWaitlistResult
function

useWish

Parameters

optionsUseWishOptions

Returns

UseWishResult
function

useWishes

Parameters

optionsUseWishesOptionsoptional

Returns

UseWishesResult

Utilities

function

cn

Merges Tailwind CSS classes with proper precedence handling

Parameters

inputsClassValue[]

Class values to merge

Returns

string

Merged class string

Get or create a fingerprint for the current browser/device

Returns

string

The fingerprint string

Reset the stored fingerprint (for testing purposes)

Returns

void
—