# React icons libraries

React icon libraries ship icons as React components, each rendering an inline SVG element. These libraries let apps size and color each icon with props or CSS and ship only the icons a project imports.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [Lucide React](#lucide) | 520.6M | 25.7K | Nov 2026 | ISC |
| [React Icons](#react-icons) | 45.2M | 12.7K | Jun 2026 | MIT |
| [Material UI Icons](#mui-icons-material) | 39.3M | 99.4K | Oct 2026 | MIT |
| [Radix Icons](#radix-ui-react-icons) | 29.9M | 2.7K | Nov 2024 | MIT |
| [Phosphor Icons](#phosphor) | 29.4M | 1.8K | May 2025 | MIT |
| [Heroicons](#heroicons) | 23.7M | 23.9K | Nov 2024 | MIT |
| [Ant Design Icons](#ant-design-icons) | 23.4M | 1.1K | Aug 2026 | MIT |
| [Tabler Icons](#tabler-icons-react) | 20.2M | 22.7K | Nov 2026 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[Lucide React](#lucide) has the most monthly downloads in this comparison, at 481.4M.

## Capabilities

| Library | Filled styles | Brand logos |
| --- | --- | --- |
| [Lucide React](#lucide) | No | No |
| [React Icons](#react-icons) | Yes | Yes |
| [Material UI Icons](#mui-icons-material) | Yes | Yes |
| [Radix Icons](#radix-ui-react-icons) | Yes | Yes |
| [Phosphor Icons](#phosphor) | Yes | Yes |
| [Heroicons](#heroicons) | Yes | Undocumented |
| [Ant Design Icons](#ant-design-icons) | Yes | Yes |
| [Tabler Icons](#tabler-icons-react) | Yes | Yes |

## Libraries

### Lucide React

[GitHub](https://github.com/lucide-icons/lucide) · [npm](https://www.npmjs.com/package/lucide-react) · [Docs](https://lucide.dev/guide/react/getting-started)

Lucide React is the React package for Lucide, an icon set built as ES modules. Each icon is a component, such as `Camera`, that renders an inline SVG element, and bundlers drop every icon a project never imports. Props set `size`, `color`, and `strokeWidth`, and `nonScalingStroke` keeps the line weight constant when an icon is scaled up or down. Any standard SVG attribute also passes through as a prop.

- Downloads / mo: 520.6M
- Stars: 25.7K
- Last release: 1.75.0
- License: ISC
- Capabilities: [From the Lucide React docs](https://lucide.dev/guide/react/getting-started)

**Strengths**

- **Keeps strokes consistent when resized.** Enable nonScalingStroke to keep stroke width constant across icon sizes.
- **Shares defaults through a provider.** Set size, color, and stroke width once with LucideProvider.

**Watch out for**

- **CSS rules override individual props.** Global CSS styles beat per-icon props such as size and color. LucideProvider sets defaults that individual props can still change.
- **Per-icon imports require modern loaders.** Older Node versions need package-root imports instead of per-icon require().

```sh
npm install lucide-react
```

**shadcn-ui/ui** (128.0K stars)

[shadcn-ui/ui](https://github.com/shadcn-ui/ui) 

```javascript
function Calendar({
  className,
  classNames,
  showOutsideDays = true,
  captionLayout = "label",
  buttonVariant = "ghost",
  formatters,
  components,
  ...props
}: React.ComponentProps<typeof DayPicker> & {
  buttonVariant?: React.ComponentProps<typeof Button>["variant"]
}) {
  const defaultClassNames = getDefaultClassNames()

  return (
    <DayPicker
      showOutsideDays={showOutsideDays}
      className={cn(
        "group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
        String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
        String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
        className
      )}
      captionLayout={captionLayout}
      formatters={{
        formatMonthDropdown: (date) =>
          date.toLocaleString("default", { month: "short" }),
        ...formatters,
      }}
      classNames={{
        root: cn("w-fit", defaultClassNames.root),
        months: cn(
          "relative flex flex-col gap-4 md:flex-row",
          defaultClassNames.months
        ),
        month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
        nav: cn(
          "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
          defaultClassNames.nav
        ),
        button_previous: cn(
          buttonVariants({ variant: buttonVariant }),
          "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
          defaultClassNames.button_previous
        ),
        button_next: cn(
          buttonVariants({ variant: buttonVariant }),
          "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
          defaultClassNames.button_next
        ),
        month_caption: cn(
          "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
          defaultClassNames.month_caption
        ),
        dropdowns: cn(
          "flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
          defaultClassNames.dropdowns
        ),
        dropdown_root: cn(
          "relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",
          defaultClassNames.dropdown_root
        ),
        dropdown: cn(
          "absolute inset-0 bg-popover opacity-0",
          defaultClassNames.dropdown
        ),
        caption_label: cn(
          "font-medium select-none",
          captionLayout === "label"
            ? "text-sm"
            : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
          defaultClassNames.caption_label
        ),
        month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
        weekdays: cn("flex", defaultClassNames.weekdays),
        weekday: cn(
          "flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",
          defaultClassNames.weekday
        ),
        week: cn("mt-2 flex w-full", defaultClassNames.week),
        week_number_header: cn(
          "w-(--cell-size) select-none",
          defaultClassNames.week_number_header
        ),
        week_number: cn(
          "text-[0.8rem] text-muted-foreground select-none",
          defaultClassNames.week_number
        ),
        day: cn(
          "group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",
          props.showWeekNumber
            ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"
            : "[&:first-child[data-selected=true]_button]:rounded-l-md",
          defaultClassNames.day
        ),
        range_start: cn(
          "rounded-l-md bg-accent",
          defaultClassNames.range_start
        ),
        range_middle: cn("rounded-none", defaultClassNames.range_middle),
        range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
        today: cn(
          "rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",
          defaultClassNames.today
        ),
        outside: cn(
          "text-muted-foreground aria-selected:text-muted-foreground",
          defaultClassNames.outside
        ),
        disabled: cn(
          "text-muted-foreground opacity-50",
          defaultClassNames.disabled
        ),
        hidden: cn("invisible", defaultClassNames.hidden),
        ...classNames,
      }}
      components={{
        Root: ({ className, rootRef, ...props }) => {
          return (
            <div
              data-slot="calendar"
              ref={rootRef}
              className={cn(className)}
              {...props}
            />
          )
        },
        Chevron: ({ className, orientation, ...props }) => {
          if (orientation === "left") {
            return (
              <ChevronLeftIcon className={cn("size-4", className)} {...props} />
            )
          }

          if (orientation === "right") {
            return (
              <ChevronRightIcon
                className={cn("size-4", className)}
                {...props}
              />
            )
          }

          return (
            <ChevronDownIcon className={cn("size-4", className)} {...props} />
          )
        },
        DayButton: CalendarDayButton,
        WeekNumber: ({ children, ...props }) => {
          return (
            <td {...props}>
              <div className="flex size-(--cell-size) items-center justify-center text-center">
                {children}
              </div>
            </td>
          )
        },
        ...components,
      }}
      {...props}
    />
  )
}

```

[apps/v4/registry/new-york-v4/ui/calendar.tsx](https://github.com/shadcn-ui/ui/blob/dd41d19e2f80ff6891951f7ced74c2c9a650b065/apps/v4/registry/new-york-v4/ui/calendar.tsx#L18-L180) · [More projects using Lucide React →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20lucide-react&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { Camera } from 'lucide-react';
// Usage
const App = () => {
  return <Camera />;
};
export default App;

```

From [getting-started](https://lucide.dev/guide/react/getting-started)

### React Icons

[GitHub](https://github.com/react-icons/react-icons) · [npm](https://www.npmjs.com/package/react-icons) · [Docs](https://react-icons.github.io/react-icons/)

React Icons gathers many open source icon families, including Font Awesome, Material Design, Ionicons, and GitHub Octicons, into one package. Each family has its own subfolder, so `FaBeer` comes from `react-icons/fa` and Material Design icons come from `react-icons/md`. The imports are ES modules, so a build includes only the icons a project uses. `IconContext.Provider` sets a shared color, size, or class name for every icon beneath it, and each family keeps its own license.

- Downloads / mo: 45.2M
- Stars: 12.7K
- Last release: 5.7.0
- License: MIT
- Capabilities: [From the React Icons docs](https://react-icons.github.io/react-icons/)

**Strengths**

- **Combines several icon collections.** Import different icon families from their own package subfolders.
- **Shares defaults through React context.** Configure shared icon color and styling with IconContext.

**Watch out for**

- **Icon licenses vary by collection.** Check the selected icon collection license alongside the package license.
- **Vertical alignment needs explicit styling.** Set vertical-align with inline styles or an IconContext class.

```sh
npm install react-icons
```

**Bearle/django_private_chat2** (307 stars)

[Bearle/django_private_chat2](https://github.com/Bearle/django_private_chat2) 

```javascript
render() {
        return (
            <div className='container'>
                <div
                    className='chat-list'>
                    <SideBar
                        type='light'
                        top={
                            <span className='chat-list'>
                                <Input
                                    placeholder="Search..."
                                    ref={this.setSearchInputRef}
                                    onKeyPress={(e) => {
                                        if (e.charCode !== 13) {
                                            this.localSearch();
                                        }
                                        if (e.charCode === 13) {
                                            this.localSearch();
                                            console.log("search invoke with" + this.searchInput.input.value)
                                            e.preventDefault();
                                            return false;
                                        }
                                    }}
                                    rightButtons={
                                        <div>
                                            <Button
                                                type='transparent'
                                                color='black'
                                                onClick={() => {
                                                    this.localSearch();
                                                    console.log("search invoke with" + this.searchInput.input.value);
                                                }}
                                                icon={{
                                                    component: <FaSearch/>,
                                                    size: 18
                                                }}/>
                                            <Button
                                                type='transparent'
                                                color='black'
                                                icon={{
                                                    component: <FaTimesCircle/>,
                                                    size: 18
                                                }}
                                                onClick={() => this.clearSearchInput()}/>
                                        </div>
                                    }
                                />

                                <ChatList onClick={(item, i, e) => this.selectDialog(item)}
                                          dataSource={this.state.filteredDialogList.slice().sort(chatItemSortingFunction)}/>
                            </span>

                        }
                        bottom={
                            <Button type='transparent' color='black' disabled={true}
                                    text={"Connection state: " + this.getSocketState()}/>
                        }/>
                </div>
                <div
                    className='right-panel'>
                    <ToastContainer/>
                    <Popup
                        show={this.state.showNewChatPopup}
                        header='New chat'
                        headerButtons={[{
                            type: 'transparent',
                            color: 'black',
                            text: 'close',
                            icon: {
                                component: <FaWindowClose/>,
                                size: 18
                            },
                            onClick: () => {
                                this.setState({showNewChatPopup: false})
                            }
                        }]}
                        renderContent={() => {
                            if (this.state.usersDataLoading) {
                                return <div><p>Loading data...</p></div>
                            } else {
                                if (this.state.availableUsers.length === 0) {
                                    return <div><p>No users available</p></div>
                                } else {
                                    return <ChatList onClick={(item, i, e) => {
                                        this.setState({showNewChatPopup: false});
                                        this.selectDialog(item);
                                    }} dataSource={this.state.availableUsers}/>
                                }

                            }
                        }}
                        // footerButtons={[{
                        //     color: 'white',
                        //     backgroundColor: 'lightgreen',
                        //     text: "Hello!",
                        //     disabled: this.state.newChatChosen !== null
                        // }]}

                    />
                    <Navbar left={
                        <ChatItem  {...this.state.selectedDialog} date={null} unread={0}
                                   statusColor={
                                       this.state.selectedDialog && this.state.onlinePKs.includes(this.state.selectedDialog.id) ? "lightgreen" : ""
                                   }
                                   subtitle={
                                       this.state.selectedDialog && this.state.typingPKs.includes(this.state.selectedDialog.id) ? "typing..." : ""
                                   }
                        />
                    } right={
                        <Button
                            type='transparent'
                            color='black'
                            onClick={() => {
                                this.setState({usersDataLoading: true})
                                fetchUsersList(this.state.dialogList).then((r) => {
                                    this.setState({usersDataLoading: false})
                                    if (r.tag === 0) {
                                        console.log("Fetched users:")
                                        console.log(r.fields[0])
                                        this.setState({availableUsers: r.fields[0]})
                                    } else {
                                        console.log("Users error:")
                                        toast.error(r.fields[0])
                                    }
                                })
                                this.setState({showNewChatPopup: true})
                            }}
                            icon={{
                                component: <FaEdit/>,
                                size: 24
                            }}/>
                    }/>


                    <MessageList
                        className='message-list'
                        lockable={true}
                        onDownload={(x,i,e) => {
                            console.log("onDownload from messageList")
                            x.onDownload();
                        }}
                        downButtonBadge={this.state.selectedDialog && this.state.selectedDialog.unread > 0 ? this.state.selectedDialog.unread : ''}
                        dataSource={filterMessagesForDialog(this.state.selectedDialog, this.state.messageList)}/>

                    <input id='selectFile' hidden type="file" onChange={this.handleFileInputChange}
                           ref={this.setFileInputRef}/>
                    <Input
                        placeholder="Type here to send a message."
                        defaultValue=""
                        ref={this.setTextInputRef}
                        multiline={true}
                        // buttonsFloat='left'
                        onKeyPress={(e) => {
                            if (e.charCode !== 13) {
                                console.log('key pressed');

                                this.isTyping();
                            }
                            if (e.shiftKey && e.charCode === 13) {
                                return true;
                            }
                            if (e.charCode === 13) {
                                if (this.state.socket.readyState === 1) {
                                    this.performSendingMessage()
                                    e.preventDefault();

                                }
                                return false;
                            }
                        }}
                        leftButtons={
                            <Button
                                type='transparent'
                                color='black'
                                onClick={this.triggerFileRefClick}
                                icon={{
                                    component: <FaPaperclip/>,
                                    size: 24
                                }}
                            />
                        }
                        rightButtons={
                            <Button
                                text='Send'
                                disabled={this.state.socket.readyState !== 1}
                                onClick={() => this.performSendingMessage()}/>
                        }/>
                </div>
            </div>
        );
    }

```

[example/frontend/src/App.js](https://github.com/Bearle/django_private_chat2/blob/1845878d3ece421f7575606820b2a7c080b13359/example/frontend/src/App.js#L428-L618) · [More projects using React Icons →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20react-icons&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { FaBeer } from "react-icons/fa";

function Question() {
  return (
    <h3>
      Lets go for a <FaBeer />?
    </h3>
  );
}

```

From [README.md](https://github.com/react-icons/react-icons/blob/master/README.md)

### Material UI Icons

[GitHub](https://github.com/mui/material-ui) · [npm](https://www.npmjs.com/package/@mui/icons-material) · [Docs](https://mui.com/material-ui/icons/)

Material UI Icons, the `@mui/icons-material` package, exports Google's Material icons as React components. Each icon comes in five themes, Filled, Outlined, Rounded, Two-tone, and Sharp, chosen by a suffix on the component name, such as `DeleteOutlined`. The components render through Material UI's `SvgIcon`, so `@mui/material` has to be installed beside them. Importing each icon from its own path, such as `@mui/icons-material/Delete`, keeps the bundle smallest.

- Downloads / mo: 39.3M
- Stars: 99.4K
- Last release: 9.5.0
- License: MIT
- Capabilities: [From the Material UI Icons docs](https://mui.com/material-ui/icons/)

**Strengths**

- **Five themes per icon.** Filled, Outlined, Rounded, Two-tone, and Sharp versions share one name with a different suffix.

**Watch out for**

- **Requires Material UI.** The icons render through `SvgIcon`, so `@mui/material` is a peer dependency even in apps without other Material UI components.

```sh
npm install @mui/icons-material @mui/material @emotion/styled @emotion/react
```

**mui/toolpad** (1.7K stars)

[mui/toolpad](https://github.com/mui/toolpad) 

```tsx
function ThemeSwitcher() {
  const isSsr = useSsr();
  const theme = useTheme();

  const { paletteMode, setPaletteMode, isDualTheme } = React.useContext(PaletteModeContext);

  const toggleMode = React.useCallback(() => {
    setPaletteMode(paletteMode === 'dark' ? 'light' : 'dark');
  }, [paletteMode, setPaletteMode]);

  return isDualTheme ? (
    <Tooltip
      title={isSsr ? 'Switch mode' : `${paletteMode === 'dark' ? 'Light' : 'Dark'} mode`}
      enterDelay={1000}
    >
      <div>
        <IconButton
          aria-label={
            isSsr
              ? 'Switch theme mode'
              : `Switch to ${paletteMode === 'dark' ? 'light' : 'dark'} mode`
          }
          onClick={toggleMode}
          sx={{
            color: (theme.vars ?? theme).palette.primary.dark,
          }}
        >
          {theme.getColorSchemeSelector ? (
            <React.Fragment>
              <DarkModeIcon
                sx={{
                  display: 'inline',
                  [theme.getColorSchemeSelector('dark')]: {
                    display: 'none',
                  },
                }}
              />
              <LightModeIcon
                sx={{
                  display: 'none',
                  [theme.getColorSchemeSelector('dark')]: {
                    display: 'inline',
                  },
                }}
              />
            </React.Fragment>
          ) : (
            <React.Fragment>
              {isSsr || paletteMode !== 'dark' ? <DarkModeIcon /> : <LightModeIcon />}
            </React.Fragment>
          )}
        </IconButton>
      </div>
    </Tooltip>
  ) : null;
}

```

[packages/toolpad-core/src/DashboardLayout/ThemeSwitcher.tsx](https://github.com/mui/toolpad/blob/6ee236c60eec7819496c27e0133becd577a823f2/packages/toolpad-core/src/DashboardLayout/ThemeSwitcher.tsx#L21-L76) · [More projects using Material UI Icons →](https://dashboard.exa.ai/playground/search?q=%40mui/icons-material%20GitHub%20projects)

**Quickstart**

```tsx
import DeleteIcon from '@mui/icons-material/Delete';
export default function App() {
  return <DeleteIcon />;
}

```

From [icons](https://mui.com/material-ui/icons/)

### Radix Icons

[GitHub](https://github.com/radix-ui/icons) · [npm](https://www.npmjs.com/package/@radix-ui/react-icons) · [Docs](https://www.radix-ui.com/icons)

Radix Icons is a set of icons drawn on a fifteen-pixel grid by the WorkOS team, published for React as `@radix-ui/react-icons`. Each icon is a named component, such as `FaceIcon`, `ImageIcon`, or `SunIcon`. The same icons are also available as SVG downloads and as a Figma file.

- Downloads / mo: 29.9M
- Stars: 2.7K
- Last release: 1.3.2
- License: MIT
- Capabilities: [From the Radix Icons docs](https://www.radix-ui.com/icons)

**Strengths**

- **Figma file included.** Designers work from the same icons in Figma that the React package ships.

```sh
npm install @radix-ui/react-icons
```

**ixartz/SaaS-Boilerplate** (7.5K stars)

[ixartz/SaaS-Boilerplate](https://github.com/ixartz/SaaS-Boilerplate) 

```tsx
export const Hero = () => {
  const t = useTranslations('Hero');

  return (
    <Section className="py-36">
      <CenteredHero
        banner={(
          <a
            className={badgeVariants()}
            href="https://twitter.com/ixartz"
            target="_blank"
            rel="noopener noreferrer"
          >
            <TwitterLogoIcon />
            {' '}
            {t('follow_twitter')}
          </a>
        )}
        title={t.rich('title', {
          important: chunks => (
            <span className="
              bg-linear-to-r from-indigo-500 via-purple-500 to-pink-500
              bg-clip-text text-transparent
            "
            >
              {chunks}
            </span>
          ),
        })}
        description={t('description')}
        buttons={(
          <>
            <a
              className={buttonVariants({ variant: 'outline', size: 'lg' })}
              href="https://github.com/ixartz/SaaS-Boilerplate"
            >
              <GitHubLogoIcon className="mr-2 size-5" />
              {t('secondary_button')}
            </a>

            <a
              className={buttonVariants({ size: 'lg' })}
              href="https://nextjs-boilerplate.com/nextjs-saas-starter-kit"
            >
              {t('primary_button')}
              <ArrowRightIcon className="ml-1 size-5" />
            </a>
          </>
        )}
      />
    </Section>
  );
};

```

[src/templates/Hero.tsx](https://github.com/ixartz/SaaS-Boilerplate/blob/e3952a7ed5b0ef172ac4363c4644b8c334d1094b/src/templates/Hero.tsx#L8-L60) · [More projects using Radix Icons →](https://dashboard.exa.ai/playground/search?q=%40radix-ui/react-icons%20GitHub%20projects)

**Quickstart**

```tsx
import { FaceIcon, ImageIcon, SunIcon } from "@radix-ui/react-icons";

function MyComponent() {
  return (
    <div>
      <FaceIcon />
      <SunIcon />
      <ImageIcon />
    </div>
  );
}

```

From [icons](https://www.radix-ui.com/icons)

### Phosphor Icons

[GitHub](https://github.com/phosphor-icons/react) · [npm](https://www.npmjs.com/package/@phosphor-icons/react)

Phosphor Icons is an icon family published for React as `@phosphor-icons/react`. Every icon takes a `weight` prop with six values, thin, light, regular, bold, fill, and duotone, along with `color` and `size`. `IconContext` sets those defaults for a whole subtree. The package exports more than nine thousand modules, so the README recommends importing individual icon paths, or `optimizePackageImports` in Next.js, to keep development builds fast.

- Downloads / mo: 29.4M
- Stars: 1.8K
- Last release: 2.1.10
- License: MIT
- Capabilities: [From the Phosphor Icons docs](https://github.com/phosphor-icons/react)

**Strengths**

- **Switches visual weights through props.** Choose thin, light, regular, bold, fill, or duotone per icon.
- **Applies shared style defaults.** Set icon color, size, and weight through IconContext.

**Watch out for**

- **Root imports affect development compilation.** Import individual icon paths when bundlers eagerly compile the entire collection.
- **Server icons bypass context defaults.** Server-component icons cannot inherit styles from an ancestor IconContext.

```sh
npm install @phosphor-icons/react
```

**Mintplex-Labs/anything-llm** (68.2K stars)

[Mintplex-Labs/anything-llm](https://github.com/Mintplex-Labs/anything-llm) 

```javascript
export default function SettingsButton() {
  const isInSettings = !!useMatch("/settings/*");
  const { user } = useUser();

  if (user && user?.role === "default") return null;

  if (isInSettings)
    return (
      <div className="flex w-fit">
        <Link
          to={paths.home()}
          className="transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover"
          aria-label="Home"
          data-tooltip-id="footer-item"
          data-tooltip-content="Back to workspaces"
        >
          <ArrowUUpLeft
            className="h-5 w-5 text-white light:text-slate-800"
            weight="fill"
          />
        </Link>
      </div>
    );

  return (
    <div className="flex w-fit">
      <Link
        to={paths.settings.interface()}
        className="transition-all duration-300 p-2 rounded-full bg-theme-sidebar-footer-icon hover:bg-theme-sidebar-footer-icon-hover"
        aria-label="Settings"
        data-tooltip-id="footer-item"
        data-tooltip-content="Open settings"
      >
        <Wrench
          className="h-5 w-5 text-white light:text-slate-800"
          weight="fill"
        />
      </Link>
    </div>
  );
}

```

[frontend/src/components/SettingsButton/index.jsx](https://github.com/Mintplex-Labs/anything-llm/blob/c4e4e677ec5611fb488f8d46782813ae994df59e/frontend/src/components/SettingsButton/index.jsx#L7-L47) · [More projects using Phosphor Icons →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20%40phosphor-icons/react&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { HorseIcon, HeartIcon, CubeIcon } from "@phosphor-icons/react";

const App = () => {
  return (
    <main>
      <HorseIcon />
      <HeartIcon color="#AE2983" weight="fill" size={32} />
      <CubeIcon color="teal" weight="duotone" />
    </main>
  );
};

```

From [README.md](https://github.com/phosphor-icons/react/blob/master/README.md)

### Heroicons

[GitHub](https://github.com/tailwindlabs/heroicons) · [npm](https://www.npmjs.com/package/@heroicons/react) · [Docs](https://heroicons.com/)

Heroicons is an SVG icon set from the makers of Tailwind CSS, published for React as `@heroicons/react`. Each style and size has its own import path, with outline and solid icons at the standard size and smaller solid sets for compact layouts. Icons take their color from the CSS `color` property, so Tailwind text color utilities style them. The same icons also ship as plain SVG to copy into HTML.

- Downloads / mo: 23.7M
- Stars: 23.9K
- Last release: 2.2.0
- License: MIT
- Capabilities: [From the Heroicons docs](https://heroicons.com/)

**Strengths**

- **Offers outline and solid variants.** Choose outline or solid icons from separate size-specific import paths.
- **Uses familiar CSS color styling.** Set icon color through CSS or Tailwind color utilities.

**Watch out for**

- **Closed to icon requests.** Contributions cover bug fixes to existing icons. Requests for new icons fall outside the project's scope.

```sh
npm install @heroicons/react
```

**vercel/commerce** (14.3K stars)

[vercel/commerce](https://github.com/vercel/commerce) 

```javascript
export default function MobileMenu({ menu }: { menu: Menu[] }) {
  const pathname = usePathname();
  const searchParams = useSearchParams();
  const [isOpen, setIsOpen] = useState(false);
  const openMobileMenu = () => setIsOpen(true);
  const closeMobileMenu = () => setIsOpen(false);

  useEffect(() => {
    const handleResize = () => {
      if (window.innerWidth > 768) {
        setIsOpen(false);
      }
    };
    window.addEventListener("resize", handleResize);
    return () => window.removeEventListener("resize", handleResize);
  }, [isOpen]);

  useEffect(() => {
    setIsOpen(false);
  }, [pathname, searchParams]);

  return (
    <>
      <button
        onClick={openMobileMenu}
        aria-label="Open mobile menu"
        className="flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors md:hidden dark:border-neutral-700 dark:text-white"
      >
        <Bars3Icon className="h-4" />
      </button>
      <Transition show={isOpen}>
        <Dialog onClose={closeMobileMenu} className="relative z-50">
          <Transition.Child
            as={Fragment}
            enter="transition-all ease-in-out duration-300"
            enterFrom="opacity-0 backdrop-blur-none"
            enterTo="opacity-100 backdrop-blur-[.5px]"
            leave="transition-all ease-in-out duration-200"
            leaveFrom="opacity-100 backdrop-blur-[.5px]"
            leaveTo="opacity-0 backdrop-blur-none"
          >
            <div className="fixed inset-0 bg-black/30" aria-hidden="true" />
          </Transition.Child>
          <Transition.Child
            as={Fragment}
            enter="transition-all ease-in-out duration-300"
            enterFrom="translate-x-[-100%]"
            enterTo="translate-x-0"
            leave="transition-all ease-in-out duration-200"
            leaveFrom="translate-x-0"
            leaveTo="translate-x-[-100%]"
          >
            <Dialog.Panel className="fixed bottom-0 left-0 right-0 top-0 flex h-full w-full flex-col bg-white pb-6 dark:bg-black">
              <div className="p-4">
                <button
                  className="mb-4 flex h-11 w-11 items-center justify-center rounded-md border border-neutral-200 text-black transition-colors dark:border-neutral-700 dark:text-white"
                  onClick={closeMobileMenu}
                  aria-label="Close mobile menu"
                >
                  <XMarkIcon className="h-6" />
                </button>

                <div className="mb-4 w-full">
                  <Suspense fallback={<SearchSkeleton />}>
                    <Search />
                  </Suspense>
                </div>
                {menu.length ? (
                  <ul className="flex w-full flex-col">
                    {menu.map((item: Menu) => (
                      <li
                        className="py-2 text-xl text-black transition-colors hover:text-neutral-500 dark:text-white"
                        key={item.title}
                      >
                        <Link
                          href={item.path}
                          prefetch={true}
                          onClick={closeMobileMenu}
                        >
                          {item.title}
                        </Link>
                      </li>
                    ))}
                  </ul>
                ) : null}
              </div>
            </Dialog.Panel>
          </Transition.Child>
        </Dialog>
      </Transition>
    </>
  );
}

```

[components/layout/navbar/mobile-menu.tsx](https://github.com/vercel/commerce/blob/f7521d57d29f0eb3d23c1399cf9bb299d61fcd21/components/layout/navbar/mobile-menu.tsx#L12-L104) · [More projects using Heroicons →](https://dashboard.exa.ai/playground/search?q=React%20projects%20that%20use%20%40heroicons/react&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { BeakerIcon } from '@heroicons/react/24/solid'

function MyComponent() {
  return (
    <div>
      <BeakerIcon className="size-6 text-blue-500" />
      <p>...</p>
    </div>
  )
}

```

From [README.md](https://github.com/tailwindlabs/heroicons/blob/master/README.md)

### Ant Design Icons

[GitHub](https://github.com/ant-design/ant-design-icons) · [npm](https://www.npmjs.com/package/@ant-design/icons) · [Docs](https://ant.design/components/icon)

Ant Design Icons, the `@ant-design/icons` package, provides the icons of the Ant Design component library as React components. Most icons come in three styles, each its own component: `StarOutlined`, `StarFilled`, and `StarTwoTone`. The `twoToneColor` prop sets the colors of two-tone icons, and the same icon set is published for Vue, Angular, and React Native.

- Downloads / mo: 23.4M
- Stars: 1.1K
- Last release: 6.3.4
- License: MIT
- Capabilities: [From the Ant Design Icons docs](https://ant.design/components/icon)

**Strengths**

- **Two-tone styling.** Two-tone icons take a primary and a secondary color through `twoToneColor`.

```sh
npm install @ant-design/icons@6.x --save
```

**ant-design/ant-design** (100.3K stars)

[ant-design/ant-design](https://github.com/ant-design/ant-design) 

```tsx
const App: React.FC = () => {
  const [messageApi, contextHolder] = message.useMessage();
  const [loading, setLoading] = useState(false);
  const [imageUrl, setImageUrl] = useState<string>();

  const beforeUpload = (file: FileType) => {
    const isJpgOrPng = file.type === 'image/jpeg' || file.type === 'image/png';
    if (!isJpgOrPng) {
      messageApi.error('You can only upload JPG/PNG file!');
    }
    const isLt2M = file.size / 1024 / 1024 < 2;
    if (!isLt2M) {
      messageApi.error('Image must smaller than 2MB!');
    }
    return isJpgOrPng && isLt2M;
  };

  const handleChange: UploadProps['onChange'] = (info) => {
    if (info.file.status === 'uploading') {
      setLoading(true);
      return;
    }
    if (info.file.status === 'done') {
      // Get this url from response in real world.
      getBase64(info.file.originFileObj as FileType, (url) => {
        setLoading(false);
        setImageUrl(url);
      });
    }
  };

  const uploadButton = (
    <button style={{ border: 0, background: 'none' }} type="button">
      {loading ? <LoadingOutlined /> : <PlusOutlined />}
      <div style={{ marginTop: 8 }}>Upload</div>
    </button>
  );

  return (
    <>
      {contextHolder}
      <Flex gap="medium" wrap>
        <Upload
          name="avatar"
          listType="picture-card"
          className="avatar-uploader"
          showUploadList={false}
          action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload"
          beforeUpload={beforeUpload}
          onChange={handleChange}
        >
          {imageUrl ? (
            <img draggable={false} src={imageUrl} alt="avatar" style={{ width: '100%' }} />
          ) : (
            uploadButton
          )}
        </Upload>
        <Upload
          name="avatar"
          listType="picture-circle"
          className="avatar-uploader"
          showUploadList={false}
          action="https://660d2bd96ddfa2943b33731c.mockapi.io/api/upload"
          beforeUpload={beforeUpload}
          onChange={handleChange}
        >
          {imageUrl ? (
            <img draggable={false} src={imageUrl} alt="avatar" style={{ width: '100%' }} />
          ) : (
            uploadButton
          )}
        </Upload>
      </Flex>
    </>
  );
};

```

[components/upload/demo/avatar.tsx](https://github.com/ant-design/ant-design/blob/f95109b2665a76f7cfea41e22685de45980f18d8/components/upload/demo/avatar.tsx#L14-L89) · [More projects using Ant Design Icons →](https://dashboard.exa.ai/playground/search?q=%40ant-design/icons%20GitHub%20projects)

**Quickstart**

```tsx
import { StarOutlined } from '@ant-design/icons';
export default function App() {
  return <StarOutlined />;
}

```

From [icon](https://ant.design/components/icon)

### Tabler Icons

[GitHub](https://github.com/tabler/tabler-icons) · [npm](https://www.npmjs.com/package/@tabler/icons-react) · [Docs](https://tabler.io/docs/icons/react)

Tabler Icons is a set of free, MIT-licensed SVG icons drawn on one grid with one stroke width, and `@tabler/icons-react` publishes them as React components. Icons come in outline and filled versions and are imported by name with an `Icon` prefix, such as `IconArrowLeft`. Props set `size`, `color`, and `stroke`, and the package ships as tree-shakable ES modules.

- Downloads / mo: 20.2M
- Stars: 22.7K
- Last release: 3.52.0
- License: MIT
- Capabilities: [From the Tabler Icons docs](https://tabler.io/docs/icons/react)

**Strengths**

- **One set across frameworks.** Official packages publish the same icons for React, Vue, Svelte, Angular, and other frameworks.

```sh
npm install @tabler/icons-react
```

**shadcn-ui/ui** (128.0K stars)

[shadcn-ui/ui](https://github.com/shadcn-ui/ui) 

```tsx
export function DataTable({
  data: initialData,
}: {
  data: z.infer<typeof schema>[]
}) {
  const [data, setData] = React.useState(() => initialData)
  const [rowSelection, setRowSelection] = React.useState({})
  const [columnVisibility, setColumnVisibility] =
    React.useState<ColumnVisibilityState>({})
  const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>(
    []
  )
  const [sorting, setSorting] = React.useState<SortingState>([])
  const [pagination, setPagination] = React.useState({
    pageIndex: 0,
    pageSize: 10,
  })
  const sortableId = React.useId()
  const sensors = useSensors(
    useSensor(MouseSensor, {}),
    useSensor(TouchSensor, {}),
    useSensor(KeyboardSensor, {})
  )

  const dataIds = React.useMemo<UniqueIdentifier[]>(
    () => data?.map(({ id }) => id) || [],
    [data]
  )

  const table = useTable({
    features,
    data,
    columns,
    state: {
      sorting,
      columnVisibility,
      rowSelection,
      columnFilters,
      pagination,
    },
    getRowId: (row) => row.id.toString(),
    enableRowSelection: true,
    onRowSelectionChange: setRowSelection,
    onSortingChange: setSorting,
    onColumnFiltersChange: setColumnFilters,
    onColumnVisibilityChange: setColumnVisibility,
    onPaginationChange: setPagination,
  })

  function handleDragEnd(event: DragEndEvent) {
    const { active, over } = event
    if (active && over && active.id !== over.id) {
      setData((data) => {
        const oldIndex = dataIds.indexOf(active.id)
        const newIndex = dataIds.indexOf(over.id)
        return arrayMove(data, oldIndex, newIndex)
      })
    }
  }

  return (
    <Tabs
      defaultValue="outline"
      className="w-full flex-col justify-start gap-6"
    >
      <div className="flex items-center justify-between px-4 lg:px-6">
        <Label htmlFor="view-selector" className="sr-only">
          View
        </Label>
        <Select defaultValue="outline">
          <SelectTrigger
            className="flex w-fit @4xl/main:hidden"
            size="sm"
            id="view-selector"
          >
            <SelectValue placeholder="Select a view" />
          </SelectTrigger>
          <SelectContent>
            <SelectItem value="outline">Outline</SelectItem>
            <SelectItem value="past-performance">Past Performance</SelectItem>
            <SelectItem value="key-personnel">Key Personnel</SelectItem>
            <SelectItem value="focus-documents">Focus Documents</SelectItem>
          </SelectContent>
        </Select>
        <TabsList className="hidden **:data-[slot=badge]:size-5 **:data-[slot=badge]:rounded-full **:data-[slot=badge]:bg-muted-foreground/30 **:data-[slot=badge]:px-1 @4xl/main:flex">
          <TabsTrigger value="outline">Outline</TabsTrigger>
          <TabsTrigger value="past-performance">
            Past Performance <Badge variant="secondary">3</Badge>
          </TabsTrigger>
          <TabsTrigger value="key-personnel">
            Key Personnel <Badge variant="secondary">2</Badge>
          </TabsTrigger>
          <TabsTrigger value="focus-documents">Focus Documents</TabsTrigger>
        </TabsList>
        <div className="flex items-center gap-2">
          <DropdownMenu>
            <DropdownMenuTrigger asChild>
              <Button variant="outline" size="sm">
                <IconLayoutColumns />
                <span className="hidden lg:inline">Customize Columns</span>
                <span className="lg:hidden">Columns</span>
                <IconChevronDown />
              </Button>
            </DropdownMenuTrigger>
            <DropdownMenuContent align="end" className="w-56">
              {table
                .getAllColumns()
                .filter(
                  (column) =>
                    typeof column.accessorFn !== "undefined" &&
                    column.getCanHide()
                )
                .map((column) => {
                  return (
                    <DropdownMenuCheckboxItem
                      key={column.id}
                      className="capitalize"
                      checked={column.getIsVisible()}
                      onCheckedChange={(value) =>
                        column.toggleVisibility(!!value)
                      }
                    >
                      {column.id}
                    </DropdownMenuCheckboxItem>
                  )
                })}
            </DropdownMenuContent>
          </DropdownMenu>
          <Button variant="outline" size="sm">
            <IconPlus />
            <span className="hidden lg:inline">Add Section</span>
          </Button>
        </div>
      </div>
      <TabsContent
        value="outline"
        className="relative flex flex-col gap-4 overflow-auto px-4 lg:px-6"
      >
        <div className="overflow-hidden rounded-lg border">
          <DndContext
            collisionDetection={closestCenter}
            modifiers={[restrictToVerticalAxis]}
            onDragEnd={handleDragEnd}
            sensors={sensors}
            id={sortableId}
          >
            <Table>
              <TableHeader className="sticky top-0 z-10 bg-muted">
                {table.getHeaderGroups().map((headerGroup) => (
                  <TableRow key={headerGroup.id}>
                    {headerGroup.headers.map((header) => {
                      return (
                        <TableHead key={header.id} colSpan={header.colSpan}>
                          {header.isPlaceholder ? null : (
                            <FlexRender header={header} />
                          )}
                        </TableHead>
                      )
                    })}
                  </TableRow>
                ))}
              </TableHeader>
              <TableBody className="**:data-[slot=table-cell]:first:w-8">
                {table.getRowModel().rows?.length ? (
                  <SortableContext
                    items={dataIds}
                    strategy={verticalListSortingStrategy}
                  >
                    {table.getRowModel().rows.map((row) => (
                      <DraggableRow key={row.id} row={row} />
                    ))}
                  </SortableContext>
                ) : (
                  <TableRow>
                    <TableCell
                      colSpan={columns.length}
                      className="h-24 text-center"
                    >
                      No results.
                    </TableCell>
                  </TableRow>
                )}
              </TableBody>
            </Table>
          </DndContext>
        </div>
        <div className="flex items-center justify-between px-4">
          <div className="hidden flex-1 text-sm text-muted-foreground lg:flex">
            {table.getFilteredSelectedRowModel().rows.length} of{" "}
            {table.getFilteredRowModel().rows.length} row(s) selected.
          </div>
          <div className="flex w-full items-center gap-8 lg:w-fit">
            <div className="hidden items-center gap-2 lg:flex">
              <Label htmlFor="rows-per-page" className="text-sm font-medium">
                Rows per page
              </Label>
              <Select
                value={`${table.state.pagination.pageSize}`}
                onValueChange={(value) => {
                  table.setPageSize(Number(value))
                }}
              >
                <SelectTrigger size="sm" className="w-20" id="rows-per-page">
                  <SelectValue placeholder={table.state.pagination.pageSize} />
                </SelectTrigger>
                <SelectContent side="top">
                  {[10, 20, 30, 40, 50].map((pageSize) => (
                    <SelectItem key={pageSize} value={`${pageSize}`}>
                      {pageSize}
                    </SelectItem>
                  ))}
                </SelectContent>
              </Select>
            </div>
            <div className="flex w-fit items-center justify-center text-sm font-medium">
              Page {table.state.pagination.pageIndex + 1} of{" "}
              {table.getPageCount()}
            </div>
            <div className="ml-auto flex items-center gap-2 lg:ml-0">
              <Button
                variant="outline"
                className="hidden h-8 w-8 p-0 lg:flex"
                onClick={() => table.setPageIndex(0)}
                disabled={!table.getCanPreviousPage()}
              >
                <span className="sr-only">Go to first page</span>
                <IconChevronsLeft />
              </Button>
              <Button
                variant="outline"
                className="size-8"
                size="icon"
                onClick={() => table.previousPage()}
                disabled={!table.getCanPreviousPage()}
              >
                <span className="sr-only">Go to previous page</span>
                <IconChevronLeft />
              </Button>
              <Button
                variant="outline"
                className="size-8"
                size="icon"
                onClick={() => table.nextPage()}
                disabled={!table.getCanNextPage()}
              >
                <span className="sr-only">Go to next page</span>
                <IconChevronRight />
              </Button>
              <Button
                variant="outline"
                className="hidden size-8 lg:flex"
                size="icon"
                onClick={() => table.setPageIndex(table.getPageCount() - 1)}
                disabled={!table.getCanNextPage()}
              >
                <span className="sr-only">Go to last page</span>
                <IconChevronsRight />
              </Button>
            </div>
          </div>
        </div>
      </TabsContent>
      <TabsContent
        value="past-performance"
        className="flex flex-col px-4 lg:px-6"
      >
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
      <TabsContent value="key-personnel" className="flex flex-col px-4 lg:px-6">
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
      <TabsContent
        value="focus-documents"
        className="flex flex-col px-4 lg:px-6"
      >
        <div className="aspect-video w-full flex-1 rounded-lg border border-dashed"></div>
      </TabsContent>
    </Tabs>
  )
}

```

[apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx](https://github.com/shadcn-ui/ui/blob/dd41d19e2f80ff6891951f7ced74c2c9a650b065/apps/v4/registry/new-york-v4/blocks/dashboard-01/components/data-table.tsx#L358-L637) · [More projects using Tabler Icons →](https://dashboard.exa.ai/playground/search?q=%40tabler/icons-react%20GitHub%20projects)

**Quickstart**

```tsx
import { IconArrowLeft } from '@tabler/icons-react';

const App = () => {
  return <IconArrowLeft />;
};

export default App;

```

From [README.md](https://raw.githubusercontent.com/tabler/tabler-icons/main/packages/icons-react/README.md)

## FAQ

### Which React icon library should I use?

Inside a Material UI or Ant Design app, use that library's own icons, [Material UI Icons](#mui-icons-material) or [Ant Design Icons](#ant-design-icons). Otherwise, [Lucide React](#lucide) gives one consistent outline set with stroke width as a prop, and [React Icons](#react-icons) gathers many families, such as Font Awesome, behind one install.

### How do I use React Icons?

Install `react-icons`, then import each icon from its family's subfolder, such as `import { FaBeer } from 'react-icons/fa'`, and render it as a component. `IconContext.Provider` sets a shared color, size, or class for every icon inside it.

### How do I use Material UI icons?

Install `@mui/icons-material` next to `@mui/material`, which it needs as a peer dependency, then import one icon per path, such as `import DeleteIcon from '@mui/icons-material/Delete'`. Other styles add a suffix to the name: `DeleteOutlined`, `DeleteRounded`, `DeleteSharp`, and `DeleteTwoTone`.

### How do I use Lucide in React?

Install `lucide-react` and import icons by name, such as `import { Camera } from 'lucide-react'`. Each icon accepts `size`, `color`, and `strokeWidth` props, along with any standard SVG attribute.

### What are Radix Icons?

Radix Icons is a set of icons drawn on a fifteen-pixel grid by the WorkOS team. The React package, `@radix-ui/react-icons`, exports each icon as a component, such as `FaceIcon`.

### Lucide vs Heroicons: which should I use?

Heroicons comes from the makers of Tailwind CSS in outline and solid styles at fixed sizes, each imported from its own path. Lucide has a single outline style, and its stroke width and size change through props.

## How this page was built

Data checked Nov 19, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "React icon libraries Lucide Heroicons React Icons Phosphor SVG tree shaking context code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
