logo

eola Style Guide 2024: Icon

Icon

This component renders an icon. Either check the file library/atoms/Icon/iconNames.ts or look in the "Currently Used Icons" section below to view available icons.

It is also possible to add new icons if necessary, we use Streamline icons as the source for general icons. Check out the instructions to load new icons.

Use the Activity Type Icon component for something related to the activity type.


Animated Icon

We are using LottieFiles for animated icons. A Lottie is a JSON-based animation file format that enables designers to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation.

The component AnimatedIcon has all the functionalities built-in. Choose the name of the icon you would like to render and try some of the attributes such as play, loop, etc, to achieve what you need.


Currently Used Icons


General Icons

add

add

apple-pay

apple-pay

arrow-left

arrow-left

arrow-right

arrow-right

box

box

calendar-add

calendar-add

calendar

calendar

card-arrow

card-arrow

cart

cart

check-shield

check-shield

check

check

clock

clock

close

close

cog

cog

credit-card

credit-card

crown

crown

edit

edit

eola-logo-hexagonal

eola-logo-hexagonal

facebook

facebook

filter

filter

gift

gift

google-pay-white

google-pay-white

google-pay

google-pay

heart

heart

house-outline

house-outline

house

house

info

info

instagram

instagram

like-shine

like-shine

lock

lock

logo

logo

mag-glass

mag-glass

menu

menu

multiple-users

multiple-users

padlock

padlock

pin-filled

pin-filled

pin-map

pin-map

pin

pin

profile

profile

react

react

running-man

running-man

script

script

shield

shield

speech-bubble

speech-bubble

star-outline

star-outline

star

star

stopwatch

stopwatch

success-tick

success-tick

tick-circle

tick-circle

tick

tick

ticket-check

ticket-check

ticket-group

ticket-group

ticket-price

ticket-price

ticket-star

ticket-star

ticket

ticket

twitter

twitter

user-add

user-add

user-circle

user-circle

user-group

user-group

user

user

voucher

voucher

walking

walking


Activity Type Icons


archery

archery

assault

assault

bike

bike

bushcraft

bushcraft

canyon

canyon

cave

cave

climb

climb

coast

coast

dive

dive

drive

drive

fishing

fishing

fitness

fitness

food

food

hot-air

hot-air

kayak

kayak

kite

kite

mountain

mountain

orienteering

orienteering

other

other

paintball

paintball

placeholder-missing-icon

placeholder-missing-icon

pwr-boat

pwr-boat

quad

quad

raft

raft

rental

rental

riding

riding

sailing

sailing

simulator

simulator

ski

ski

sled

sled

snowboard

snowboard

sup

sup

surf

surf

swim

swim

tent

tent

theory

theory

tour

tour

tube

tube

windsurf

windsurf

wski

wski

yoga

yoga


Animated Icons


arrow

basketUpdate

cart

check

checkList

clap

exclamation

loader

menu

pen


Examples

Icon

<Grid gridGap={3}>
  <Icon name="surf" />
  <Icon name="cart" color="grey" size={50} />
  <div style={{background: 'black', padding: '10px', display: 'flex'}}>
  <Icon name="lock" size={100} color="white" />
  </div>
</Grid>

Animated Icon

<Grid gridGap={6} gridRowGap={4} gridTemplateColumns='repeat(4, 1fr)'>
  <div>
    <H4 mb={4}>Play on click and freeze on last frame</H4>
    <AnimatedIcon name="menu" playOnClick freezeOnLastFrame />
  </div>
  <div>
    <H4 mb={4}>Play on click and freeze on last frame and reverse animation on even click</H4>
    <AnimatedIcon name="menu" playOnClick freezeOnLastFrame reverseOnEvenClick />
  </div>
  <div>
    <H4 mb={4}>Play on click with loop</H4>
    <AnimatedIcon name="menu" loop playOnClick />
  </div>
  <div>
    <H4 mb={4}>Autoplay with loop</H4>
    <AnimatedIcon name="menu" autoplay loop size={50} />
  </div>
</Grid>