1. Components
  2. Icon

Icon

Iconify icon wrapper with size and color variants.

Demo

Installation

terminal

Usage

The Icon component provides a simple wrapper around Iconify icons. Use the name prop to specify the icon class, size for predefined sizes, and intent for semantic colors.

Examples

Sizes

Intents

API

PropTypeDescription
namestringThe Iconify icon class name (e.g., ph--house, ph--user).
sizexs | sm | md | lg | xl | 2xlPredefined size for the icon.
intentcurrent | fg | muted | primary | secondary | success | warning | destructiveSemantic color intent for the icon.