Skip to content
Components

Display Components

Add badges, tooltips, cards, and other display elements.

Display Components

Display components provide supporting visual elements that enhance your screens without requiring user interaction. Use them to add labels, contextual hints, embedded web content, visual grouping, and spacing.

Badge

A compact label element for highlighting status, categories, or tags. Badges are commonly used to draw attention to new features, labels, or metadata.

Properties

PropertyTypeDescription
TexttextThe badge label text. Localizable.
Background ColorcolorBadge fill color.
Text ColorcolorLabel text color.
Font SizenumberLabel font size.
Font WeightselectLabel font weight.
Border RadiusnumberCorner rounding. Default: fully rounded (pill shape).
PaddingspacingInternal spacing.
Border WidthnumberOptional border stroke width.
Border ColorcolorBorder stroke color.

Use cases

  • "NEW" or "BETA" labels on feature announcements
  • Category tags in onboarding topic selectors
  • Status indicators ("Pro", "Free Trial", "Recommended")

Tooltip

A contextual hint component that displays explanatory text near a target element. Tooltips help users understand what a feature does or why something is being shown.

Properties

PropertyTypeDescription
TexttextTooltip content text. Localizable.
Background ColorcolorTooltip background.
Text ColorcolorTooltip text color.
Arrow PositionselectWhere the arrow points: top, bottom, left, right.
Font SizenumberText size.
Border RadiusnumberCorner rounding.
Max WidthnumberMaximum tooltip width before text wraps.
PaddingspacingInternal spacing.

WebView

An embedded web content component that renders a URL within your flow screen. WebView is useful for displaying terms of service, privacy policies, external forms, or any web-based content that does not need to be rebuilt natively.

Properties

PropertyTypeDescription
URLurlThe web page to load.
WidthsizeComponent width.
HeightsizeComponent height.
Allow ScrollingbooleanWhether the embedded page can scroll independently.
Show LoadingbooleanDisplay a loading indicator while the page loads.

WebView content is rendered inside a platform webview, unlike all other Setgreet components which are fully native. Use WebView sparingly and only when native components cannot achieve the desired result.


Card

A container component with visual styling — background, border, and shadow — that groups related content together. Cards provide a clear visual boundary around a set of components.

Properties

PropertyTypeDescription
Background ColorcolorCard fill color.
Border RadiusnumberCorner rounding.
Border WidthnumberBorder stroke width.
Border ColorcolorBorder stroke color.
ShadowshadowBox shadow configuration (offset, blur, spread, color).
PaddingspacingInternal spacing around child components.
MarginspacingExternal spacing.
WidthsizeCard width.

Cards can contain any other components as children, making them a versatile way to visually group text, images, buttons, and input elements.


Divider

A horizontal line that visually separates sections of content within a screen.

Properties

PropertyTypeDescription
ColorcolorLine color. Default: light gray.
ThicknessnumberLine height in pixels. Default: 1.
WidthsizeLine width. Default: 100%.
MarginspacingSpacing above and below the divider.
OpacitynumberLine transparency (0 to 1).

Spacer

A flexible spacing element that creates vertical or horizontal gaps between components. Spacers are essential for controlling layout when you need precise spacing that padding and margin alone cannot achieve.

Properties

PropertyTypeDescription
HeightsizeFixed height in pixels, or "auto".
Fill SpacebooleanWhen enabled, the spacer expands to fill available space. Useful for pushing content to the bottom of the screen.

Layout behavior

A spacer with fillSpace enabled expands to push subsequent components toward the bottom of the screen. This is how you create layouts where buttons are pinned to the bottom.

On this page