Tip
A short message that points out a feature people might miss, in the screen or anchored to a control.
import { Tip } from "@plexui/react-native"Examples
Overview
Popover
Group
Platforms
| iOS 26 | Android | |
|---|---|---|
| Native component | None (TipKit is SwiftUI only: a Plex view drawn as its tips) | None (a Plex view with Material 3's rich tooltip layout) |
| Look | Inline: TipKit's card, a gray over the screen with a hairline rim; popover: the regular glass with an arrow | Inline: a card with 16dp corners; popover: the popup surface with a caret |
API
Tip
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | The tip's title: what the feature is |
description | ReactNode | — | One or two sentences on how to use it |
icon | ReactNode | — | A symbol that leads the message, or a picture of your own, which keeps its colors; with a larger iconSize it stands in the middle of that size's square, and one with absoluteFill or a size of 100% fills it. The small symbol reads --tip-icon-size, --tip-icon-frame-width and --tip-icon-frame-height from the theme; an explicit icon size takes precedence |
iconSize | "small" | "symbol" | "image" | "small" | A small symbol on the title's line; a symbol of 34 (40dp on Android) or an image of 64 (56dp) at the start, the text and the actions in a column beside it |
actions | ReactNode | — | Buttons for the tip's actions, below the message |
mobileActions | "rows" | "buttons" | "rows" | Rows of text under a separator in the tint (text buttons on Android), or the buttons as given, in their own color and variant: side by side on iOS, as TipKit's, across the tip on Android; a Button's own size and block={false} win |
onClose | () => void | — | Shows the Close button; called when it is pressed |
closeLabel | string | "Close tip" | Accessible name of the Close button |
arrowEdge | "top" | "bottom" | "left" | "right" | — | Draws an arrow at this edge, pointing at what the tip explains |
arrowOffset | number | the edge's middle | Where the arrow's point stands along arrowEdge, from the edge's left or top end: at a control off the tip's middle. On iOS as near as 19 to the tip's side, the corner beside it giving way to its foot; on Android the caret keeps 12 from the corners |
keepCorners | boolean | false | Keeps the corners beside the arrow round: the arrow's point stays the corner's radius plus half the arrow from the side (26 + 23.5 on iOS, 16 + 8 on Android), clear of the corner |
style | StyleProp<ViewStyle> | — | Style of the tip |
testID | string | — | Test id |
Tip.Popover
Takes title, description, icon, iconSize, actions and mobileActions as Tip does, and the control it explains as its only child: an element that hands its native view to ref (a Button, a Pressable, a View), which keeps its own place in the layout.
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Shows the tip (controlled) |
defaultOpen | boolean | false | Shows the tip at first (uncontrolled) |
onOpenChange | (open: boolean) => void | — | Called when the tip opens or closes |
side | "top" | "right" | "bottom" | "left" | "bottom" | The side of the control the tip shows on, turned when it does not fit |
align | "start" | "center" | "end" | "center" | The alignment against the control |
sideOffset | number | 4 | The distance from the control to the arrow's point |
closeButton | boolean | true | Shows the Close button |
keepCorners | boolean | false | Keeps the corners beside the arrow round, the arrow clear of them, as Tip's |
material | "glass" | "solid" | "glass" | The tip's surface on iOS: the glass, or the opaque elevated surface (--tip-popover-background) iOS draws it on with Reduce Transparency, for a tip over a photo; Android's is always solid |
closeLabel | string | "Close tip" | Accessible name of the Close button |
style | StyleProp<ViewStyle> | — | Style of the popover around the tip |
testID | string | — | Test id |
Tip.Group
Takes the tip to show now as its child, or nothing.
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | The tip shown now, keyed by what it teaches (<Tip key="welcome" … />), or nothing. A tip with another key takes the place of the one before; a tip without a key is known by its title |
spacing | number | 0 | The room between the tip and what follows it, which comes and goes with the tip |
style | StyleProp<ViewStyle> | — | Style of the place |
testID | string | — | Test id |
An inline tip is a note named by its title; a popover tip is a dialog named by its title that does not move the focus. A tap outside a popover tip closes it without reaching what is under it.