Genesis
@beta

NativeIcon

NativeIcon — an icon by what it is for ("settings", "bell"), not by a library's name. On iOS it draws the SF Symbol (expo-symbols' `SymbolView`, passed as `modules.symbol`); on Android and web, and as the SF Symbol's fallback, it draws the icon set given as `modules.icons` (`lucideIcons` from `@marktiderman/genesis-ui-native/icons/lucide`). With neither, it keeps the icon's space empty and warns once in development. Decorative by default (hidden from screen readers). Give `label` when the icon carries meaning on its own, such as an icon-only button's content.

packages/ui-native/src/components/icon.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { NativeIcon } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NativeIcon

PropTypeDefaultDescription
name*enum—
color____ColorValue_Internal—Default the theme's label color.
labelstring—Read by screen readers. Without it the icon is decorative and hidden from them.
sizenumber20Points. Default 20.
testIDstring—
weightenum—iOS SF Symbol weight.