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 26Android
Native componentNone (TipKit is SwiftUI only: a Plex view drawn as its tips)None (a Plex view with Material 3's rich tooltip layout)
LookInline: TipKit's card, a gray over the screen with a hairline rim; popover: the regular glass with an arrowInline: a card with 16dp corners; popover: the popup surface with a caret

API

Tip

PropTypeDefaultDescription
titleReactNode—The tip's title: what the feature is
descriptionReactNode—One or two sentences on how to use it
iconReactNode—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
actionsReactNode—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
closeLabelstring"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
arrowOffsetnumberthe edge's middleWhere 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
keepCornersbooleanfalseKeeps 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
styleStyleProp<ViewStyle>—Style of the tip
testIDstring—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.

PropTypeDefaultDescription
openboolean—Shows the tip (controlled)
defaultOpenbooleanfalseShows 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
sideOffsetnumber4The distance from the control to the arrow's point
closeButtonbooleantrueShows the Close button
keepCornersbooleanfalseKeeps 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
closeLabelstring"Close tip"Accessible name of the Close button
styleStyleProp<ViewStyle>—Style of the popover around the tip
testIDstring—Test id

Tip.Group

Takes the tip to show now as its child, or nothing.

PropTypeDefaultDescription
childrenReactNode—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
spacingnumber0The room between the tip and what follows it, which comes and goes with the tip
styleStyleProp<ViewStyle>—Style of the place
testIDstring—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.