Skip to content
This repository was archived by the owner on Jun 14, 2021. It is now read-only.
Steve Ruiz edited this page Jan 29, 2018 · 4 revisions

Icons show SVG icons from the Material Design Icons collection.


Constructor

myIcon = new Icon
    icon: 'star'

Properties

icon.icon <string>

The name of the Icon's icon. Search Material Design Icons to find the one you want: unless it is very new there, it will be valid in Framework.

myIcon = new Icon
    icon: 'settings'

myIcon.icon = 'settings'

icon.color <string>

The icon's color.

myIcon = new Icon
    icon: 'settings'
    color: '#FF0'

Methods

icon.addIcon(name <string>, svgPathData <string>)

Add a new SVG icon to the collection and change to that icon. There are probably easier ways to do custom icons in Framer, but if you do choose to go down this route, know that Icon's viewBox is 0 0 512 512.

myIcon.addIcon('left-triangle', "M 0,0 L 512,512 0,512 0,0")
Clone this wiki locally