Install & setup

The same 441 icons ship to seven targets. Pick your platform for the exact install command, the setup step it needs, and a snippet you can copy straight into your project.

@refineui/react-icons

0.3.39

Named React components backed by the icon font. One component covers every supported size.

Install

npm install @refineui/react-icons

Register the font

Import once at your app entry point — the components only position a glyph.

import '@refineui/react-icons/dist/fonts/refineui-system-icons.css';

React props

Every icon in @refineui/react-icons and @refineui/react-native-icons takes the same props.

Prop Type Default Description
size number 24 One of 16, 20, 24, 28, 32, 48. Selects the glyph drawn for that size.
color string currentColor Any CSS color. Inherits from the parent by default.
className string Applied to the rendered span.
style CSSProperties Merged over the generated font styles.
onClick () => void Click handler on the rendered span.

Naming

Every platform derives its identifier from the same slug, so local-language resolves consistently across all of them.

Platform Identifier
React · React Native · Web LocalLanguage / LocalLanguageFilled
iOS .localLanguage24Regular
Android @drawable/ic_refineui_local_language_24_regular
Flutter RefineUIIcons.local_language_24_regular
CDN icons/24/local-language-regular.svg

Dynamic icons

When the icon name is only known at runtime, use IconUtils. It accepts sized and unsized method names and returns a React element, or null when no glyph exists.

import { IconUtils } from '@refineui/react-icons';

IconUtils.createIconMethod('AccessibilityRegular');
IconUtils.createIconMethod('Add24Filled', { style: { color: 'tomato' } });

IconUtils.searchIcons('language');
IconUtils.getIconChar('local-language', 'regular', 24);

Browse all 441 icons