LycanUI
LycanUI

Getting Started

Introduction Installation Forms

Components

Accordion Alert Avatar Badge Button
Calendar - Soon TM
Checkbox
Date Field - Soon TM
Collapsible Dialog Dropdown Input Popover Radio Select Switch Textarea
Toaster - Soon TM

Avatar


An image with fallback for representing a user.

Installation


          rails g lycan_ui:add avatar
        

Features


  • Lazy loading of avatars with specified fallback

  • Gracefully falls back if image loading fails

Usage


Using the optional fallback

Pass in fallback to ui.avatar with the value of the fallback.

LY