Home Manual Reference Source Repository
import Icon from 'mrn/lib/Icon.js'
public class | source

Icon

Expression Extends:

class Icon extends createIconSet(GLYPH_MAP, FONT_NAME, FONT_FILE)

Icon Component

Example:

<Icon name="google" size={24} color={COLOR[`${primary}500`].color} />

Constructor Summary

Public Constructor
public

Public Constructors

public constructor(prop: object) source

Params:

NameTypeAttributeDescription
prop object
prop.name string

Icon name

prop.size number
  • optional
  • default: 12

Icon size

prop.color string
  • optional

Icon color