Avatar

It's a face in a circle
Includes a Ruby component and corresponding Rails helper
Ruby

Example

<%= nk_avatar "dhh-racer.jpg" %>

Install

Set up Nitro Kit then

bin/rails generate nitro_kit:add avatar

Sizes

:sm
:md
:lg

Usage

nk_avatar(src = nil, size: :md, **attrs)
PropertyDefaultDescription
srcnil Uses image_tag internally.
size:mdOne of ":sm" / ":md" / ":lg"
**attrsHTML attributes for <div> element