React Native
Plex UI for React Native and Expo: the names and props of @plexui/ui, the iOS 27 look with Liquid Glass on iOS and the Plex Android look on Android.
@plexui/react-native takes the components of Plex UI to an iOS and Android app: on iOS the iOS 27 look, measured on the native controls (the system's sizes, Liquid Glass bars, buttons, tab bar and menus); on Android the Plex Android look, with Material 3 Expressive where it has no pattern of its own; and the parts of a chat screen: messages, a composer that floats over the keyboard, a conversation list, an emoji keyboard.
Every example on these pages is live, drawn by react-native-web. The switch above the examples draws them as iOS or Android, light or dark.
Setup
npm install @plexui/react-native react-native-svg react-native-safe-area-context
# optional: native glass on iOS 26 and later, a blur elsewhere
npx expo install expo-glass-effect expo-blur
# optional: on a phone the lifted lens of the tab bar and the segmented control shows what is under it, its rim bending it
npx expo install @react-native-masked-view/masked-viewWrap the app in ThemeProvider inside SafeAreaProvider, and put one Toaster in it for toast():
import { ThemeProvider, Toaster, interFonts } from "@plexui/react-native"
import { SafeAreaProvider } from "react-native-safe-area-context"
export default function App() {
return (
<SafeAreaProvider>
<ThemeProvider fonts={interFonts}>
<Screens />
<Toaster />
</ThemeProvider>
</SafeAreaProvider>
)
}ThemeProvider follows the device: iOS draws the iOS 27 look, Android the Plex Android look, and Android 16's Material 3 Expressive where it has no pattern of its own; the web the iOS look. platform overrides it, scheme takes "light", "dark" or "system", and brand sets a product's colors, faces and radii over the Plex UI defaults. selectionColor is the on color of every Switch, Checkbox and RadioGroup that sets none of its own, and a nested ThemeProvider takes its parent's: "primary" (the default) is the Plex primary, the ink, as on the web; "accent" is each platform's own, on iOS a green switch and accent checkboxes and checkmarks, the iOS tint, and on Android the accent for all of them.
fonts sets the kit's faces; without it each platform draws its own system face. It takes one set of faces for every platform, or a set per drawn platform, { ios, android }, of which a provider takes the one of its platform (a platform left out draws its system face). interFonts and robotoFonts are the family names that @expo-google-fonts/inter and @expo-google-fonts/roboto register. An Android device has Roboto as its system face already, but the web needs it loaded for the Android look: in a browser on a Mac the Material look would otherwise draw in the browser's system face, not Roboto.
import { ThemeProvider, interFonts, robotoFonts } from "@plexui/react-native"
import { Inter_400Regular, Inter_500Medium, Inter_600SemiBold, Inter_700Bold } from "@expo-google-fonts/inter"
import { Roboto_400Regular, Roboto_500Medium, Roboto_600SemiBold, Roboto_700Bold } from "@expo-google-fonts/roboto"
import { useFonts } from "expo-font"
export default function App() {
const [loaded] = useFonts({
Inter_400Regular, Inter_500Medium, Inter_600SemiBold, Inter_700Bold,
Roboto_400Regular, Roboto_500Medium, Roboto_600SemiBold, Roboto_700Bold,
})
if (!loaded) return null
return (
<ThemeProvider fonts={{ ios: interFonts, android: robotoFonts }}>
<Screens />
</ThemeProvider>
)
}viewportWidth is the width the phone layer is laid out for, in place of the window's: a phone drawn in a frame inside a wider window, such as a gallery or a review page, sets the frame's width (402 for an iPhone 17 Pro). A nested ThemeProvider takes its parent's.
Icons
Import Lucide icons from @plexui/react-native/icons/lucide, or use a deep import such as
@plexui/react-native/icons/lucide/Sun. The existing filled-outline drawing remains the default.
Set weight="thin" for a thin contour, or strokeWidth to use the original Lucide stroke geometry, matching the catalog with Outlined off:
import { Sun, Sparkle } from "@plexui/react-native/icons/lucide"
<Sun strokeWidth={1} />
<Sparkle strokeWidth={1} absoluteStrokeWidth />strokeWidth is in the 24-unit Lucide viewBox, so its visible thickness normally scales with size.
absoluteStrokeWidth keeps it in display points instead, using the explicit size or the surrounding control's
icon size. With neither strokeWidth nor an explicit weight, absoluteStrokeWidth uses Lucide's default of 2. A supplied width wins over the
surrounding control's weight. A width of 0 hides the strokes; negative and non-finite widths are ignored. Filled
parts of a source icon keep their fill.
Use semantic weight="thin", "regular" or "semibold" for the original Lucide strokes at 1, 2 or 2.5 units.
An explicit strokeWidth takes priority. With neither stroke nor weight props, existing filled outlines stay unchanged.
For a large, thin sheet mark, pass <Sun weight="thin" /> as hero.mediaIcon.
The thin stroke scales with the sheet's public media-icon size (1 unit at 24, 3 points at 72).
The sheet supplies that size and white color, so the mark needs no copied dimensions or paths.
The same props work on iOS, Android and the web through react-native-svg; no DOM icon package is required.
Titles over descriptions
Wherever a title stands over a description (a card's header and caption, a tip, an alert, an empty message, a list row and a list's header, a control's label, a toast, a chat row), the description's first line stands at least as far under the title's words as its own lines stand apart, measured face to face: a larger title over a smaller description has less room under its words than the description has between its lines, so line boxes that touch read as one block. A card, a tip and an alert keep --title-description-gap between the two on iOS and --title-description-gap-android on Android, 2 on each, which a brand sets in its tokens; a pair the platform measured (a list row, a chat row, a toast, an empty message) keeps its own spacing and goes no closer than that. Any size a brand gives either line is held to it the same way.
Face to face, the title's words and the description's first line can still paint as close as the description's own lines. A brand that wants them further apart sets a step in its tokens: --title-description-step on iOS and --title-description-step-android on Android, 0 on each. Every pair then stands that much further than face to face, a message's author over its words too, so the gap between them paints larger than any gap between the description's lines. A list row's own gap between its label and its description (touching on iOS, 4 on Android) is --list-row-description-gap and --list-row-description-gap-android; the row grows by what a brand adds and keeps its padding.
<ThemeProvider brand={{ tokens: { "--title-description-step": "2px", "--title-description-step-android": "2px" } }}>A pair an app sets from Text takes the same gap from titleDescriptionGap(theme, title, description): the platform's token, or no less than the two lines' sizes and the step need.
import { Text, titleDescriptionGap, useTheme } from "@plexui/react-native"
const TITLE = { fontSize: 17, lineHeight: 22 }
const DESCRIPTION = { fontSize: 15, lineHeight: 20 }
function Offer() {
const theme = useTheme()
return (
<>
<Text style={TITLE}>Weekly summary</Text>
<Text color="secondary" style={[DESCRIPTION, { marginTop: titleDescriptionGap(theme, TITLE, DESCRIPTION) }]}>
12 new places this week.
</Text>
</>
)
}Components
One name on every platform, as in @plexui/ui. The table gives each component's native name, in the order of the sidebar's groups; a dash means the platform has no system component, and Plex draws one in the platform's style.
| Plex | iOS | Android (Material's name) |
|---|---|---|
| Button | Button | Button: filled, tonal, outlined, text |
IconButton | Circular button | Icon button |
| Action Tiles | — (a contact card's actions: glass buttons with labels) | — (tonal icon buttons with labels) |
NavigationButton | Bar button item | Navigation or action icon of a top app bar (a glass circle in a bar) |
| Sign In Button | Sign in with Apple (ASAuthorizationAppleIDButton); Sign in with Google | Sign in with Google |
| Menu | Menu | Menu |
| Context Menu | Context menu (touch and hold) | Menu (a popup on a long press) |
| Text Link | Link in text | Link in text |
Input, TextField | Text field | Text field: filled, outlined |
| OTP Input | — (a text field for a one-time code) | — (outlined code boxes) |
| Phone Input | — (Settings' Add Phone Number: the region's row and the number's row) | — (a region dropdown over an outlined phone field) |
| System Keyboard | The system keyboard (drawn on the web) | Gboard (drawn on the web) |
Field, FieldError | Form cell (a text field in a grouped list) | — (a list row with its field; outlined text field with a label) |
| Textarea | Text view | Text field, multi-line |
| Float Input | — (a form cell named by its placeholder) | Text field, outlined, with a floating label |
| Input Group | — (a form cell with a prefix or a unit) | — (a list row's field with a prefix or a unit) |
| Tag Input | — (a token field of gray tags) | — (a field of input chips) |
Composer, Composer.Adornment | — (a messenger's composer, with a button down to the end and its unread count) | — (the Google Messages composer) |
| Emoji Keyboard | — (an emoji panel in the keyboard's place, under a chat's composer) | — (an emoji panel in the keyboard's place) |
| Emoji Picker | — (a searchable sheet of emoji: .searchable in the bar's drawer over a grid) | — (an emoji picker in a bottom sheet, 8 columns) |
| Checkbox | — (a checkmark row or a toggle) | Checkbox |
| Chip | — (a filter capsule) | Chip |
| Radio Group | — (a checkmark list) | Radio button |
| Segmented Control | Segmented control | — (a segmented capsule; Material's is a connected button group) |
| Select | Pop-up button | Exposed dropdown menu |
| Date Picker | Date picker: compact, inline, wheels | Date picker and time picker dialogs |
| Slider | Slider | Slider |
| Stepper | Stepper | — (two segments on a capsule; Material has no stepper) |
| Switch | Toggle | Switch |
| Page Control | Page control | — (a pager indicator) |
| Pager | Page view controller (a paging scroll view) | Horizontal pager (under tabs) |
| Carousel | — (a paging scroll view of pictures, as a post's photos) | — (a horizontal pager of pictures) |
| Elastic Scroll View | Scroll view (in a browser, UIScrollView's drag, glide and rubber band) | Scroll view |
| Scroll Edge | Scroll edge effect, soft (under the status bar) | — (the status bar's scrim) |
| Tab Bar | Tab bar | Navigation bar (drawn as a glass capsule of tabs) |
| Tab View | Tab bar controller (UITabBarController: the system's own tab bar, the kit's icons and face) | Navigation bar over its screens (the kit's Tab Bar) |
| Toolbar, top | Navigation bar | Top app bar (drawn as glass circles and capsules) |
| Toolbar, bottom | Toolbar | — (a bottom row: one wide action, or a field with its circles) |
| Bottom Actions | — (the bottom action of a setup screen) | — (a full-width bottom button) |
| Action Sheet | Action sheet (confirmation dialog) | Modal bottom sheet with a list |
| Bottom Sheet | Sheet | Modal bottom sheet |
| Dialog | Alert | Dialog |
| Popover | Popover (a compact panel on iPhone) | — (a popup) |
| Tip | Tip (TipKit: inline and popover) | — (a card with the rich tooltip layout) |
| Toast | — | Snackbar |
Tooltip, CopyTooltip | — (pointer only) | Tooltip: plain, rich |
| Alert | — (an inline message in the shape of a tip) | — (a card) |
| Empty Message | Content unavailable view | — (an empty state) |
Indicators: LoadingIndicator, CircularProgress, LoadingDots | Activity indicator; — for the ring and the dots | Circular progress indicator; — for the ring and the dots |
| Progress | Progress view (linear) | Linear progress indicator |
| Progress Scale | Gauge, linear (Health's ranges) | Linear progress indicator with a handle |
| Reveal | — (opacity and offset transitions on the smooth spring) | — (a list's enter motion) |
| Progress Steps | — (numbered steps of a flow) | — (Material has no stepper) |
Shimmer Text, ShimmerableText | — (a label with a sweeping highlight) | — |
| Skeleton | Redacted placeholder | — |
| Avatar | — | — |
| Badge | Badge | Badge |
| Card | — | Card |
Conversation List, ConversationList.Item, AvatarStrip | — (a messenger's chat list, its stories over it) | — (Material's two-line list item, as Google Messages's conversations) |
| Spoiler | — (hidden text as invisible ink, revealed by a press) | — |
| Intro Header | — (the header of a setup step: a symbol, a title and what it asks) | — (the setup wizard's header) |
| Section Heading | — (a section's header in Music and the App Store: Title 2 bold with a chevron) | — (a section's header in Google Play: Title Large with an arrow) |
| List | Inset grouped list | List, as a Settings preference group |
| Media Mark | — (Photos' marks over a thumbnail, on its darkening) | — (Google Photos' marks over a thumbnail, on its darkening) |
Message, Message.Time, Message.System, Message.Unread, Message.Reaction | — (the Messages bubble) | — (the Google Messages bubble) |
| Rolling Number | — (a numeric text transition) | — |
| Separator | Divider | Divider |
Text, Heading | Text styles (Dynamic Type) | Type scale |
Names that clash between the platforms:
- Navigation bar is the top bar on iOS (Toolbar) and the bottom bar of destinations on Android (Tab Bar).
- Toolbar is the bottom bar of actions on iOS, floating in glass; Material's floating toolbar is not used on Android, where the bottom of a screen holds one wide action or a field.
- Tabs on Android sit under a top app bar and switch views inside one screen; use Segmented Control for that.