nori-ui

Icon

Thin wrapper around a user-supplied icon component with token-driven size and color.

At a glance

  • Icon-library-agnostic — pass any component matching { size?: number; color?: string }.
  • Pair with SemanticIconsProvider to alias semantic keys (checkmark, close, spinner) to your chosen icons.

Web preview

import { Star } from 'lucide-react';
import { Icon } from '@nori-ui/core';
 
<Icon as={Star} size="md" />;

Native preview

Props

PropTypeDefaultDescription
asComponentType<{ size?: number; color?: string }>Icon component reference
size'sm' | 'md' | 'lg' | number'md'Numeric or token size
colorstringIcon color; inherits currentColor when omitted
labelstringAccessible label — required when icon is meaningful

On this page