Simal UI
Components

Icon

Import

import { Icon } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
name"bell"An SF Symbol name. Mapped to the nearest Material glyph on Android and web; an unmapped name falls back to help rather than throwing.
sizePixel size. Prefer matching the adjacent text size over a round number.
colorExplicit colour. Prefer a text-* utility in className so the glyph follows the theme.
materialIconPins an exact Material glyph, overriding whatever the SF Symbol mapping would pick.
materialCommunityIconSame, from the Material Community set.

Examples

From SF Symbols

SF Symbol names, auto-mapped to Material on this platform.

Material Override

Overriding the mapping. name still carries the SF Symbol for iOS, while materialCommunityIcon / materialIcon pin the exact Material glyph used on Android and web instead of whatever rn-icon-mapper would pick.

Sizes

Colors

Colour comes from color, defaulting to the theme's foreground.

Unknown Name

An unmapped SF Symbol name degrades to help instead of crashing.

On this page