heroui-native
heroui-inc/heroui
React Native component library with Tailwind v4 (Uniwind) for accessible, customizable mobile UIs.
What is heroui-native?
HeroUI Native is a component library for React Native built on Uniwind (Tailwind CSS for React Native), providing semantic UI components like Buttons, Cards, and TextFields. Use it when building mobile applications that need accessible, theme-aware components with compound composition patterns.
- Provides pre-built React Native components (Button, Card, TextField, Dialog, etc.) with compound composition patterns
- Integrates Tailwind CSS v4 styling via Uniwind for React Native with HSL color format
- Supports semantic variants (primary, secondary, tertiary, danger) that adapt to light/dark themes
- Includes theme variables and CSS-in-JS styling with react-native-reanimated for animations
- Requires GestureHandlerRootView and HeroUINativeProvider for proper setup
- Offers documentation scripts to fetch component specs, theme variables, and implementation guides
How to install heroui-native
npx skills add https://github.com/heroui-inc/heroui --skill heroui-native- Node.js and npm installed
- React Native project (Expo recommended) or bare React Native setup
- Installation of heroui-native and peer dependencies: react-native-reanimated, react-native-gesture-handler, react-native-safe-area-context, @gorhom/bottom-sheet, react-native-svg, react-native-worklets, tailwind-merge, tailwind-variants
- Uniwind and Tailwind CSS v4 configured in project
- global.css file with Tailwind, Uniwind, and HeroUI Native imports
How to use heroui-native
- 1.Install heroui-native and required peer dependencies via npm
- 2.Create global.css with @import statements for Tailwind, Uniwind, and heroui-native/styles
- 3.Wrap your app with GestureHandlerRootView and HeroUINativeProvider in your root layout
- 4.Use compound component patterns (e.g., Card.Header, Card.Body, Card.Footer) when building UIs
- 5.Use onPress event handlers instead of onClick for interactive components
- 6.Fetch component documentation via node scripts/get_component_docs.mjs or direct MDX URLs before implementing
- 7.Apply semantic variants (primary, secondary, tertiary, danger) instead of raw colors for theme compatibility
Use cases
- Building mobile apps with Expo that need a consistent, accessible component library
- Creating themed mobile UIs with light/dark mode support using semantic color variants
- Implementing complex components like Cards with subcomponents (Card.Header, Card.Body, Card.Footer)
- Styling React Native apps with Tailwind utilities via Uniwind instead of inline styles
- Developing cross-platform iOS/Android apps with platform-specific code patterns
- React Native developers building mobile apps with Expo
- Mobile UI/UX developers familiar with Tailwind CSS patterns
- Teams needing accessible, theme-aware component libraries for iOS and Android
- Developers transitioning from HeroUI React (web) to mobile development
heroui-native FAQ
No. HeroUI React and HeroUI Native are separate packages with different styling engines (Tailwind CSS vs. Uniwind), color formats (oklch vs. HSL), and platform targets (web vs. mobile). Always use heroui-native for React Native projects.
Run node scripts/get_component_docs.mjs ComponentName or fetch MDX files directly from heroui.com/docs/native/components/. Always fetch docs before implementing to see complete props, anatomy, and examples.
Uniwind is Tailwind CSS adapted for React Native. It enables Tailwind utility styling in React Native without web-specific features. It is required for HeroUI Native to work.
Use the useUniwind hook to access the current theme, then call Uniwind.setTheme('light' or 'dark'). Theme colors are defined as CSS variables in global.css and automatically adapt.
Compound components use dot notation (Card.Header, Card.Body) to compose flexible, semantic structures. This pattern allows flexible layouts while maintaining semantic meaning and accessibility.
Full instructions (SKILL.md)
Source of truth, from heroui-inc/heroui.
name: heroui-native description: "HeroUI Native component library for React Native (Tailwind v4 via Uniwind). Use when building mobile UIs with HeroUI Native — creating Buttons, Cards, TextFields, Dialogs; installing heroui-native; configuring dark/light themes; or fetching component docs. Keywords: HeroUI Native, heroui-native, React Native UI, Uniwind, mobile components." metadata: author: heroui version: "2.0.1"
HeroUI Native Development Guide
HeroUI Native is a component library built on Uniwind (Tailwind CSS for React Native) and React Native, providing accessible, customizable UI components for mobile applications.
Installation
curl -fsSL https://heroui.com/install | bash -s heroui-native
CRITICAL: Native Only - Do Not Use Web Patterns
This guide is for HeroUI Native ONLY. Do NOT apply HeroUI React (web) patterns — the package, styling engine, and color format all differ:
| Feature | React (Web) | Native (Mobile) |
|---|---|---|
| Styling | Tailwind CSS v4 | Uniwind (Tailwind for React Native) |
| Colors | oklch format | HSL format |
| Package | @heroui/react | heroui-native |
| Platform | Web browsers | iOS & Android |
// CORRECT — Native pattern
import { Button } from "heroui-native";
<Button variant="primary" onPress={() => console.log("Pressed!")}>
Click me
</Button>;
Always fetch Native docs before implementing.
Core Principles
- Semantic variants (
primary,secondary,tertiary) over visual descriptions - Composition over configuration (compound components)
- Theme variables with HSL color format
- React Native StyleSheet patterns with Uniwind utilities
Accessing Documentation & Component Information
For component details, examples, props, and implementation patterns, always fetch documentation:
Using Scripts
# List all available components
node scripts/list_components.mjs
# Get component documentation (MDX)
node scripts/get_component_docs.mjs Button
node scripts/get_component_docs.mjs Button Card TextField
# Get theme variables
node scripts/get_theme.mjs
# Get non-component docs (guides, releases)
node scripts/get_docs.mjs /docs/native/getting-started/theming
Direct MDX URLs
Component docs: fetch .mdx with a concrete kebab-case slug. Run node scripts/list_components.mjs when the slug is unknown, and never fetch a URL that still contains a placeholder.
Examples:
- Button:
https://heroui.com/docs/native/components/button.mdx - Dialog:
https://heroui.com/docs/native/components/dialog.mdx - TextField:
https://heroui.com/docs/native/components/text-field.mdx
Getting started guides: use a concrete topic URL such as https://heroui.com/docs/native/getting-started/quick-start.mdx.
Important: Always fetch component docs before implementing. The MDX docs include complete examples, props, anatomy, and API references.
Installation Essentials
Quick Install
npm i heroui-native react-native-reanimated react-native-gesture-handler react-native-safe-area-context @gorhom/bottom-sheet react-native-svg react-native-worklets tailwind-merge tailwind-variants
Framework Setup (Expo - Recommended)
- Install dependencies:
npx create-expo-app MyApp
cd MyApp
npm i heroui-native uniwind tailwindcss
npm i react-native-reanimated react-native-gesture-handler react-native-safe-area-context @gorhom/bottom-sheet react-native-svg react-native-worklets tailwind-merge tailwind-variants
- Create
global.css:
@import "tailwindcss";
@import "uniwind";
@import "heroui-native/styles";
@source "./node_modules/heroui-native/lib";
- Wrap app with providers:
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { HeroUINativeProvider } from "heroui-native";
import "./global.css";
export default function Layout() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<HeroUINativeProvider>
<App />
</HeroUINativeProvider>
</GestureHandlerRootView>
);
}
Critical Setup Requirements
- Uniwind is Required - HeroUI Native uses Uniwind (Tailwind CSS for React Native)
- HeroUINativeProvider Required - Wrap your app with
HeroUINativeProvider - GestureHandlerRootView Required - Wrap with
GestureHandlerRootViewfrom react-native-gesture-handler - Use Compound Components - Components use compound structure (e.g.,
Card.Header,Card.Body) - Use onPress, not onClick - React Native uses
onPressevent handlers - Platform-Specific Code - Use
Platform.OSfor iOS/Android differences
Component Patterns
HeroUI Native uses compound component patterns. Each component has subcomponents accessed via dot notation.
Example - Card:
<Card>
<Card.Header>{/* Icons, badges */}</Card.Header>
<Card.Body>
<Card.Title>Title</Card.Title>
<Card.Description>Description</Card.Description>
</Card.Body>
<Card.Footer>{/* Actions */}</Card.Footer>
</Card>
Key Points:
- Always use compound structure - don't flatten to props
- Subcomponents are accessed via dot notation (e.g.,
Card.Header) - Native Card uses
Card.Body(notCard.Content); Title and Description go inside Body - Fetch component docs for complete anatomy and examples
Semantic Variants
HeroUI uses semantic naming to communicate functional intent:
| Variant | Purpose | Usage |
|---|---|---|
primary | Main action to move forward | 1 per context |
secondary | Alternative actions | Multiple |
tertiary | Dismissive actions (cancel, skip) | Sparingly |
danger | Destructive actions | When needed |
danger-soft | Soft destructive actions | Less prominent |
ghost | Low-emphasis actions | Minimal weight |
outline | Secondary actions | Bordered style |
Don't use raw colors - semantic variants adapt to themes and accessibility.
Theming
HeroUI Native uses CSS variables via Tailwind/Uniwind for theming. Theme colors are defined in global.css:
@theme {
--color-accent: hsl(260, 100%, 70%);
--color-accent-foreground: hsl(0, 0%, 100%);
}
Get current theme variables:
node scripts/get_theme.mjs
Access theme colors programmatically:
import { useThemeColor } from "heroui-native";
const accentColor = useThemeColor("accent");
Theme switching (Light/Dark Mode):
import { Uniwind, useUniwind } from "uniwind";
const { theme } = useUniwind();
Uniwind.setTheme(theme === "light" ? "dark" : "light");
For detailed theming, fetch: https://heroui.com/docs/native/getting-started/theming.mdx
Related skills
More from heroui-inc/heroui and the wider catalog.

heroui-react
Accessible React component library built on Tailwind CSS v4 and React Aria.

heroui-migration
Migrate HeroUI v2 apps to v3 with compound components, no Provider, and Tailwind v4.

deep-productivity
Master deep work productivity through the three types of work framework (Building, Maintenance, Recovery). Use when user needs to: (1) Build a sustainable deep work routine with just 1 hour/day, (2) Create vision/anti-vision for life direction, (3) Structure goals using the 10-year → 1-year → 1-month → 1-week hierarchy, (4) Apply project-based learning to bridge skill gaps, (5) Identify lever-moving tasks that actually progress goals, (6) Balance focus work with necessary recovery for creativity.

seedance2-api
End-to-end AI video generation from storyboard to final output using Seedream 4.5 and Seedance 2.0

animejs
Anime.js adapter for deterministic, seek-driven animations in HyperFrames compositions.

canopy-part-title
Animated leaf-sweep reveal for headlines with customizable typography and particle effects.