Primitives
Animated Number Avatar Badge Button Button Group Toggle Toggle Group Checkbox Chip Countdown Divider Fab Grid Icon Image Input Search Input Textarea Label Loader Marquee Masked Input Message Bubble Notification Banner Offline Banner Progress Progress Ring Radio Group Range Slider Rating Separator Skeleton Slider Stack Stepper Switch Text Theme Toggle Ticker Typing IndicatorComposed
Accordion Achievement Badge Action Bar Action Sheet Action Swap Activity Rings Add to Cart Button Address Card Agenda List Alert Amount Keypad Animated Icons App Bar Audio Message Audio Recorder Autocomplete Avatar Group Balance Display Bar List Barcode Before After Biometric Gate Bloom Menu Bottom Sheet Paywall Sheet Side Sheet Breadcrumb Calendar Calendar Strip Card Carousel Cart Item Character Charts Chat Composer Chat List Item Choice Card Circle Reveal Coach Marks Collapsible Collapsible Header Color Picker Combobox Command Palette Comment Thread Confetti Consent Sheet Context Menu Copy Field Country Picker Coupon Input Currency Input Data Table Date Range Picker Day Schedule Dialog Dock Donut Chart Drawer Driver Card Dropdown Menu Drum Picker Emoji Picker Empty State Error State Event Card Expandable Control Fader Feature Gate File Picker Filter Bar Follow Button Form Gauge Glass Glass Cluster Glass Dock Morph Glass Fab Morph Glass Lab Glass Orb Glass Search Morph Glass Sheet Edge Gradient Button Headline New Heatmap Image Cropper Image Viewer Kanban Card Keyboard Avoiding Keyboard Toolbar Leaderboard Level Progress Lightbox Like Button Line Chart List Reorderable List Swipeable Row Location Card Location Search Map Sheet Map View Markdown View Media Controls Media Picker Media Tile Mention Input Meter Bar Mini Player Mood Slider Morphing Modal Multi Select Navigation Rail Notification Item Number Input Onboarding Pager Order Card Order Summary OTP Input Pagination Paper Clip New Parallax Header Pass Card Password Strength Payment Button Payment Card Payment Method Permission Primer Phone Input PIN Pad Polaroid New Poll Popover Post Card Postage Stamp New Price Tag Pricing Table Product Card Product Gallery Profile Header Promo Banner Prompt Input Property Card Pull To Refresh QR Code Quick Actions Quick Replies Rating Summary Reaction Picker Resend Timer Review Card Review Prompt Ride Option Save Button Scan Frame Scroll Spy Tabs Seat Map Section Header Section Index Segmented Control Select Share Button Share Sheet Shutter Button Signature Pad Slide to Confirm Slot Picker Smart Banner Social Login Button Sparkline Splash Screen Split Button Stat Card Stateful Button Status Dot Step Flow Steps Sticker New Stopwatch Stories Progress Stories Viewer Story Ring Streak Counter Streaming Text Success Seal Swipe Deck Tabs Tag Input Tape New Text Reveal Thinking Indicator Time Picker Timeline Timer Ring Tip Selector Toast Toolbar Tooltip Track Row Transaction Row Trip Progress Variant Picker Video Controls Waveform Weather Card Weekday Picker Zoom TransitionScreens
Account Switcher Biometric Setup Delete Account Forgot Password Grow Auth Login Login — Dark Stage Login — Dense Work Login — Editorial Login — Illustrated Login — Minimal Ink Login — Social Login — Video Loop Food Onboarding Onboarding Onboarding Dark Objects Onboarding Editorial Onboarding Illustrated Onboarding Personalize Onboarding Photo Carousel OTP Verification Passkey — Create Password Reset Permission — Notifications Phone Verification Onboarding Quiz Session Devices Signup Sign-up Chat Sign-up Photo Sheet Social Auth Split Auth Verify Identity Welcome AI Chat AI Assistant Channels List Chat Info Chat List Chat Media Chat Thread Create Group Group Info Message Requests New Message Kept Messages Accessibility Activity Log Appearance Authenticator Blocked Accounts Export Your Data Downloads Edit Profile Edit Profile — Rows Emergency Call Empty States Set Error State Send Feedback Device Locator Help Center Home — Bento Home — Dark Home — Editorial Home Feed Invite Friends Language & Region Linked Accounts Not Found (404) Notification Settings Notifications Password Vault Paywall Paywall — Comparison Paywall — Dark Stage Paywall — Editorial Paywall — Photo Paywall — Trial Timeline Privacy Profile Profile — Gamified Profile — Minimal Profile — Photo Hero QR Scanner Report Issue Saved Items Phone Time Search Search — Command Palette Search — Visual Account Health Settings Settings — Dark Device Settings — Search Storage & Data Terms & Privacy Dating Chat Dating Filters Profile Discover Its A Match Into You Matches Profile Detail Profile Editor Courier Matching Delivery History Delivery Support Package Schedule Parcel Tracking Proof Of Delivery Quick Aisle Quick Home Send Package Substitutions Add Payment Address Book Cart Categories Checkout Checkout — Steps Checkout Success Delivery Filters & Sort Flash Sale Gift Cards Loyalty Points Order Cancel Order Detail Orders Pay Later Checkout Payment Methods Product Detail Product Detail — Hero Product Grid Product Reviews Promo Codes Recently Viewed Return Items Search Results Shop Assistant Store Home Tip & Rate Courier Order Tracking Wishlist Write a Review Event Checkin Event Hero Events Discover My Tickets Seat Selection Ticket Checkout Add Card Bank Accounts Dashboard — Bento Bill Pay Budgets Card Details Crypto Portfolio Finance Dashboard Dashboard — Dark Exchange Currency Expense List Invoice Detail Manage Cards Plan Management Savings Goals Send Money Spending Analytics Split Bill Subscriptions Token Detail Token Swap Transactions Wallet Home Wallet Movers Courier Tracking Food Cart Food Home Food Orders Grocery List Recipe Detail Restaurant — Dark Restaurant Detail Activity Rings Fitness Home Habit Quest Habit Tracker Meal Planner Med Store Meditation Player Mood Check-in Nutrition Home Period Tracker Prior Auth Prior Auth Cases Quest Complete Run Tracking Rx Scan Sleep Tracker Telehealth Booking Walk Map Water Tracker Workout Complete Workout Detail Workout Session Applications Apply Company Interview Schedule Job Detail Job Feed Resume Saved Jobs Create Listing Item Chat Listing Detail Make Offer Market Checkout Market Home Market Search My Listings Offers Inbox Seller Profile Audiobook Player Camera Gallery Albums Game Store Mini Player Music Player Photo Editor Photo Gallery Playlist Detail Podcast Player Clips Feed Serene Home Sound Mixer Stories Video Call Video Player Article Reader Course Detail Event Detail Memory Onboarding Icon Lab Leaderboard Lesson Player Match Detail News Editorial News Home Plant Care Prediction Live Prediction Welcome Smart Home Standings Ticket Wallet Topics Follow Weather Detail Add Task Sheet Alarm Clock Calendar Day Calendar Month Doc Scanner File Manager Focus Timer Journal Kanban Board Mail Inbox Mail Thread Note Editor Notes List Reminders Task List Time Blocks Agent Profile Compare Homes Mortgage Calculator Property Detail Rental Application Saved Homes Schedule Tour Search List Search Map Complete Destination Driver Arriving Ev Charging History Home In Trip Matching Options Parking Receipt Safety Schedule Scooter Unlock Booking Confirmed Booking Review Booking Slots My Bookings Pro On The Way Provider Detail Provider List Rate Service Services Home Arc Create Arc Detail Arc Onboarding Avatar Creator Comments Sheet Create Post Explore Grid Followers List Hashtag Feed Mentions Post Detail Post Hero Social Profile Boarding Pass Booking Confirm Car Rental Trip Discover Flight Live Flight Preferences Flight Results Flight Search Hotel Detail Live Transit Trip — Map Day Trip — Rideshare Request Seat Select Travel Home Trip Itinerary Trip OnboardingNothing matches — try another word.
Empty State
Placeholder for empty lists, no search results and errors, with an icon, headline, short message and action. Soft light falls from the top as the content fades in.
Preview
TSX components/ui/empty-state/empty-state.tsx
import * as React from "react";
import { forwardRef } from "react";
import { View, Text, type ViewProps } from "react-native";
import { BAND_STAGGER, LightFall, SwitchOn, cn, createVariant, useTheme, type ColorTokens } from "@lumioui/core";
import { Icon, type IconName } from "../icon";
const iconWrapVariants = createVariant({
base: "h-20 w-20 items-center justify-center rounded-[28px]",
variants: {
variant: {
default: "bg-primary/10",
search: "bg-primary/10",
error: "bg-destructive/10",
},
},
defaultVariants: { variant: "default" },
});
const variantIcons: Record<NonNullable<EmptyStateProps["variant"]>, IconName> = {
default: "info",
search: "search",
error: "alert-triangle",
};
const variantIconColors: Record<NonNullable<EmptyStateProps["variant"]>, keyof ColorTokens> = {
default: "primaryText",
search: "primaryText",
error: "destructive",
};
export interface EmptyStateProps extends ViewProps {
/** Visual tone. Default "default". */
variant?: "default" | "search" | "error";
/** Icon slot rendered in the lit well. Defaults to a Lumio glyph per variant. */
icon?: React.ReactNode;
/** Headline. */
title: string;
/** Supporting copy. */
description?: string;
/** Optional action slot (e.g. a <Button>). */
action?: React.ReactNode;
/** Light the stage from above in the surface accent. Default true. */
lit?: boolean;
className?: string;
}
/**
* EmptyState — an empty, no-result or error state on a lit stage
* (DESIGN-TASTE §0b): light falls from the top edge in the surface accent,
* and the glyph, headline, copy and action switch on in page bands, 120ms
* apart. No grey disc, no bounce.
*/
export const EmptyState = forwardRef<React.ElementRef<typeof View>, EmptyStateProps>(function EmptyState(
{ variant = "default", icon, title, description, action, lit = true, className, ...props },
ref
) {
const { colors } = useTheme();
const tone = variant === "error" ? colors.destructive : undefined;
return (
<View
ref={ref}
className={cn("items-center justify-center gap-3 overflow-hidden rounded-3xl px-8 py-12", className)}
accessibilityRole="text"
accessibilityLabel={description ? `${title}. ${description}` : title}
{...props}
>
{lit ? <LightFall color={tone} reach={0.7} /> : null}
<SwitchOn className={iconWrapVariants({ variant })}>
{icon ?? <Icon name={variantIcons[variant]} size="xl" color={variantIconColors[variant]} />}
</SwitchOn>
<SwitchOn delay={BAND_STAGGER}>
<Text className="text-center text-xl font-semibold leading-tight tracking-tight text-foreground" accessibilityRole="header">
{title}
</Text>
</SwitchOn>
{description ? (
<SwitchOn delay={BAND_STAGGER * 2}>
<Text className="max-w-[300px] text-center text-base leading-snug text-muted-foreground">{description}</Text>
</SwitchOn>
) : null}
{action ? (
<SwitchOn delay={BAND_STAGGER * 3} className="mt-2">
{action}
</SwitchOn>
) : null}
</View>
);
});
EmptyState.displayName = "EmptyState"; TSX example.tsx
import { EmptyState } from "@/components/ui/empty-state/empty-state";
export function Example() {
return (
<EmptyState />
);
} Installation
npx @lumioui/cli add empty-state
Add the components it builds on
Copy the source from the Code tab into your project
components/ui/empty-state/empty-state.tsxcomponents/ui/empty-state/index.tsUpdate the import paths to match your project setup.
Usage
import { EmptyState } from "@/components/ui/empty-state/empty-state"; <EmptyState /> Examples
A music app search.
npx @lumioui/cli add empty-state-search
TSX components/ui/empty-state/variants/search.tsx
import * as React from "react";
import { Pressable, View } from "react-native";
import { Accent } from "@lumioui/core";
import { EmptyState } from "../empty-state";
import { SearchInput } from "../../search-input/search-input";
import { Icon } from "../../icon/icon";
import { Text } from "../../text/text";
const CATALOG = [
{ title: "Nightcall", artist: "Kavos", tile: "bg-tint-pink" },
{ title: "Midnight Harbour", artist: "M-Line", tile: "bg-tint-teal" },
{ title: "Night Owl", artist: "Galimar", tile: "bg-tint-amber" },
{ title: "Night Swim", artist: "Frank Oyelaran", tile: "bg-tint-orange" },
];
/** EmptyStateSearch — a music app search. Matches list as you type; a query
* with no hits swaps the list for the search empty state, whose action
* clears the field. Try typing "nightz". */
export function EmptyStateSearch() {
const [q, setQ] = React.useState("nightz");
const hits = CATALOG.filter((s) => `${s.title} ${s.artist}`.toLowerCase().includes(q.trim().toLowerCase()));
return (
<Accent color="pink" className="w-full">
<View className="w-full gap-4">
<Text className="px-1 text-3xl font-bold tracking-tight">Search</Text>
<SearchInput value={q} onChangeText={setQ} onClear={() => setQ("")} placeholder="Artists, songs, podcasts" />
{hits.length === 0 ? (
<EmptyState
variant="search"
title={`No results for "${q.trim()}"`}
description="Check the spelling, or try an artist or album name instead."
action={
<Pressable onPress={() => setQ("night")} accessibilityRole="button" className="h-11 justify-center px-2">
<Text className="text-base font-semibold text-primary-text">Search "night" instead</Text>
</Pressable>
}
className="px-6 py-10"
/>
) : (
<View className="overflow-hidden rounded-2xl bg-card">
{hits.map((s, i) => (
<View key={s.title} className="flex-row items-center gap-3 pl-3">
<View className={`h-12 w-12 items-center justify-center rounded-lg ${s.tile}`}>
<Icon name="music" size="sm" color="#FFFFFF" />
</View>
<View className={`flex-1 py-3 pr-4 ${i > 0 ? "border-t border-border" : ""}`}>
<Text className="text-base font-medium">{s.title}</Text>
<Text variant="muted">Song · {s.artist}</Text>
</View>
</View>
))}
</View>
)}
</View>
</Accent>
);
} A task app's Today list.
npx @lumioui/cli add empty-state-variants
TSX components/ui/empty-state/variants/variants.tsx
import * as React from "react";
import { Pressable, View } from "react-native";
import { Accent } from "@lumioui/core";
import { EmptyState } from "../empty-state";
import { Button } from "../../button/button";
import { Icon } from "../../icon/icon";
import { Text } from "../../text/text";
const SUGGESTED = ["Renew parking permit", "Call the vet about Miso", "Send Q3 deck to Rahul"];
/** EmptyStateVariants — a task app's Today list. Clearing the last task lands
* the empty state in the list's place; its action brings work back. Tap a
* task's circle to complete it. */
export function EmptyStateVariants() {
const [tasks, setTasks] = React.useState<string[]>([]);
return (
<Accent color="orange" className="w-full">
<View className="w-full gap-3">
<View className="gap-1 px-1">
<Text className="text-3xl font-bold tracking-tight">Today</Text>
<Text variant="muted">Wednesday, 8 October</Text>
</View>
{tasks.length === 0 ? (
<View className="w-full overflow-hidden rounded-2xl bg-card">
<EmptyState
icon={<Icon name="check" size="xl" color="primary" strokeWidth={2.5} />}
title="All clear for today"
description="Nothing due. Enjoy the quiet, or plan something for tomorrow."
action={
<Button size="md" onPress={() => setTasks(SUGGESTED)}>
Add a task
</Button>
}
className="px-6 py-12"
/>
</View>
) : (
<View className="overflow-hidden rounded-2xl bg-card">
{tasks.map((t, i) => (
<Pressable
key={t}
onPress={() => setTasks((list) => list.filter((x) => x !== t))}
accessibilityRole="checkbox"
accessibilityState={{ checked: false }}
accessibilityLabel={`Complete ${t}`}
className="flex-row items-center gap-3 pl-4"
>
<View className="h-6 w-6 rounded-full border-2 border-primary" />
<View className={`flex-1 py-4 pr-4 ${i > 0 ? "border-t border-border" : ""}`}>
<Text className="text-base">{t}</Text>
</View>
</Pressable>
))}
</View>
)}
</View>
</Accent>
);
} API reference
Prop Type Default
title* string Headline.
—variant "default" | "search" | "error" Visual tone. Default "default".
"default" icon React.ReactNode Icon slot rendered in the lit well. Defaults to a Lumio glyph per variant.
—description string Supporting copy.
—action React.ReactNode Optional action slot (e.g. a <Button>).
—lit boolean Light the stage from above in the surface accent. Default true.
true className string —