Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

ContextView component for Stripe Apps


Dashboard only

ContextView component for Stripe Apps Dashboard only

ContextView allows apps to render next to Stripe content in a drawer so users can look at them side by side and share context.

SDK version

The root view of your app must be a ContextView.

These in-context modules allow the app to meet users in their existing workflows and provide contextual information and actions.

A user’s interaction with an app always begins with a view type called a ContextView view. Each app must have a single ContextView view (per viewport), which acts as the default view when the page loads (similar to the index.html of a website).

What ContextView looks like

Note

To create a view within an existing ContextView, see FocusView.

ContextView props

PropertyType
childrenRequired React.ReactNode The contents of the component.
titleRequired string The title of the ContextView. This will be displayed at the top of the drawer under that app’s name.
actionsOptional React.ReactNode A React fragment containing up to three Buttons that will be displayed directly under the header and above the children of the ContextView.
bannerOptional React.ReactElement | undefined A Banner component that will be displayed directly under the header and above the children of the ContextView.
brandColorOptional string | undefined A CSS color that contrasts well with brandIcon.
brandIconOptional string | undefined A square, 1-color SVG that contrasts well with brandColor.
descriptionOptional string | undefined A description of the view’s purpose that can also be used as a subtitle.
externalLinkOptional ExternalLink | undefined A link to an external webpage. This should generally allow the user to view related information on another site with more context than what the app makes available in the app drawer. Related types: ExternalLink.
footerContentOptional React.ReactNode React node adjacent to any actions in the footer.
primaryActionOptional React.ReactElement | undefined A primary call to action (“Save” or “Continue”) Button placed in the footer.
secondaryActionOptional React.ReactElement | undefined A secondary call to action (“Cancel”) Button placed in the footer.
PropertyType
hrefRequired string URL of an external link.
labelRequired string Label of an external link.

Example

See also

Last verified 2026-09-24

Is this helpful?