Stripe | Financial Infrastructure to Grow Your Revenue

Stripe | Financial Infrastructure to Grow Your Revenue

4466 articles

UI components


UI components

Use the Stripe components library to build your user interface.

If your app needs a front end, use this reference documentation to compose a UI. The Stripe library of prebuilt components has customizable properties to help you build apps aligned with Stripe best practices. Use components to structure layouts and create graphical or interactive interfaces in your apps.

Views

Every view you add needs a view component. These determine which view of your app the user sees at different moments, similar to different HTML pages of a website.

The most common view is ContextView. When a user begins a workflow or task in your app, switch their view to FocusView to hide the background details. To design your app settings page, use SettingsView. To design a sign in screen, use SignInView.

Some views are root components. ContextView, SettingsView, and SignInView are view roots—the foundational components that contain all other UI elements—whereas FocusView is a child component of ContextView.

ComponentDescription
ContextViewContextView allows apps to render next to Stripe content in a drawer so users can look at them side by side and share context.
FullPageViewUse FullPageView to render your app in a full-page viewport.
OnboardingViewUse OnboardingView to guide users through an onboarding flow in your app.
SettingsViewUse SettingsView to let users to change details about how the app works with their account.
SignInViewUse SignInView to display a sign in screen to users.

Layout

Use layout components to create the structure of your pages and elements.

ComponentDescription
BoxUse boxes to wrap other components and add custom styles and layouts.
DetailPageUse DetailPage to implement detail-style layouts in your app.
DividerRender a simple horizontal rule with the divider component.
OverviewPageUse OverviewPage to implement overview-style layouts in your app.

Use navigation components to help users wayfind and interact with your app.

ComponentDescription
ButtonButtons allow users to take actions in Stripe products, and you can use them to direct users’ attention or warn them of outcomes.
ButtonGroupUse ButtonGroup to handle the layout for multiple buttons and collapse them into an overflow menu when space is limited.
LinkLinks are used for navigating users from one page to another, and for actions that need more subtlety than a button provides.
MenuA menu presents a group of actions that a user can choose from, often related to a particular object or context.
TabsUse tabs to display sections of content.

Content

Use content components to organize and place information within your app.

ComponentDescription
AccordionUse accordions to split long or complex content into collapsible chunks.
BadgeUse badges to indicate states that an item or object might move through or change to.
BannerUse the Banner to show a variety of alerts or messages you want to make explicit to the user.
ChipUse chips to display and allow users to manipulate values.
DataTableUse DataTable to display tabular data with sorting, filtering, and pagination.
FocusViewUse FocusView to open a dedicated space for the end user to complete a specific task.
IconDisplay an icon graphic in a compatible format.
ImgDisplay images with the Img UI component.
InlineUse the inline component to style inline content such as text.
ListDisplay a list of information in a variety of preconfigured formats.
PropertyListUse PropertyList to display data as key-value pairs.
SpinnerUse the Spinner component to indicate something is loading.
TableDisplay rows and columns of data.
TaskListUse TaskList to help users track progress through a list of tasks.
ToastInform users of temporary status.
TooltipUse Tooltips to provide additional contextual information about a particular element or subject.

Forms

Use form components to compose input fields and controls that require user input. For example, use them to create checklists or to enable users to select settings.

ComponentDescription
CheckboxUse checkboxes to indicate or control boolean values.
CurrencyFieldUse CurrencyField for handling payment amounts.
DateFieldUse DateField to create a date input field.
DateRangePickerUse DateRangePicker to collect a date range from users.
FormFieldGroupGroup form fields with the FormFieldGroup component.
RadioUse Radios to make a selection from a mutually exclusive set of options.
SearchFieldUse SearchField to let users search and filter content in your app.
SelectUse Select to pick from a set of options in a dropdown.
SwitchSimilar to Checkboxes, you can use Switches to indicate or control boolean values.
TextAreaUse TextArea to create an input field for multiple lines of text.
TextFieldUse TextField to create a text input field.

Charts

Use chart components to map data points visually. For example, use a chart in your app to help users track payments data or compare progress over time.

ComponentDescription
BarChartA bar chart visualizes data as a series of data points using bars.
LineChartA line chart visualizes data as a series of data points connected into a line.
SparklineA type of line chart to display data succinctly as a simple line.
MeterChartA meter chart displays a whole divided into segments, each representing a proportion of the total.

See also

Last verified 2026-09-24

Is this helpful?