0.5.0
  • Docs
  • Getting Started
  • Icons
Switch theme
GitHub
    Playground
  • Getting Started
    • Guides
      • Agent Workflows
      • Why Choose Rocketicons
      • Framework Quick Starts
      • Generated Files
      • Migrating to Rocketicons
    • Using The Icons
      • Adding Icons
      • Colors
      • Dark Mode
      • Responsive Design
      • Shortcuts
      • Sizing Icons
      • Hover, Focus and Other States
      • Styling
    • Icons
      • Ant Design Icons
      • BoxIcons
      • Bootstrap Icons
      • css.gg
      • Circum Icons
      • Devicons
      • Font Awesome 5
      • Font Awesome 6
      • Flat Color Icons
      • Feather
      • Game Icons
      • Github Octicons icons
      • Grommet-Icons
      • Heroicons
      • Heroicons 2
      • IcoMoon Free
      • Ionicons 4
      • Ionicons 5
      • Icons8 Line Awesome
      • Lucide
      • Material Design icons
      • MynaUI Icons
      • Iconoir
      • Phosphor Icons
      • rocketicons
      • Remix Icon
      • Radix Icons
      • Simple Icons
      • Simple Line Icons
      • Tabler Icons
      • Themify Icons
      • Typicons
      • VS Code Icons
      • Weather Icons
    • Roadmap

    Loading...

    Copyright © 2024–2026 rocketclimb

    DiscordGitHub

    Guides

    Pick your launchpad

    Every setup starts the same way: use an existing React or React Native project, initialize Rocketicons at its root, then add an exact icon ID. TypeScript and JavaScript projects are supported.

    terminal

    React

    Import the generated component through the alias added to tsconfig.json:

    Your build tool must understand the @ alias. If it does not read TypeScript paths automatically, mirror that alias in its configuration.

    Next.js

    Run the commands from the directory containing next.config.* and tsconfig.json. Next.js reads TypeScript path aliases, so the generated import can be used in a Server or Client Component wherever its surrounding code allows.

    Vite

    Run the commands beside vite.config.*. Keep the generated @/ri/* TypeScript path and configure Vite's @ alias if your starter does not already provide it.

    Expo

    Start with an Expo TypeScript or JavaScript project and set up NativeWind as described in the React Native section below before initializing. Metro must resolve your @ alias.

    React Native

    Rocketicons uses its generated native core with react-native-svg and styles icons through NativeWind 4. NativeWind 4 compiles with Tailwind CSS 3, so React Native registers the Rocketicons plugin in tailwind.config.js, not with the web @plugin line.

    Install NativeWind 4, react-native-svg, and tailwindcss@^3.4. Then configure these files:

    In a React Native CLI app without Expo, add "nativewind/babel" to your existing Babel presets and wrap the config from @react-native/metro-config with withNativeWind, as shown in NativeWind's framework-less guide.

    npx rocketicons init adds the nativeIconPlugin entry to an existing tailwind.config.* file in CommonJS, ESM, or TypeScript, and --dry-run shows that edit first. Run npx rocketicons doctor --json to check the Tailwind CSS version, the NativeWind preset and Rocketicons plugin, the imported stylesheet, withNativeWind in Metro, and the Babel preset.

    If Babel reports Cannot find module 'react-native-worklets/plugin' in an app on Reanimated 3, upgrade to [email protected] or newer.

    Render the generated component with icon classes:

    The CLI installs nativewind and react-native-svg when they are missing and registers the plugin. It does not install Tailwind CSS, create the NativeWind, Babel, or Metro files, or configure alias resolution. NativeWind 5, which uses Tailwind CSS 4, is not configured automatically yet.