Class: RubyUI::Avatar
- Defined in:
- lib/ruby_ui/avatar/avatar.rb
Constant Summary collapse
- SIZES =
{ xs: "h-4 w-4 text-[0.5rem]", sm: "h-6 w-6 text-xs", md: "h-10 w-10 text-base", lg: "h-14 w-14 text-xl", xl: "h-20 w-20 text-3xl" }
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(size: :md, **attrs) ⇒ Avatar
constructor
A new instance of Avatar.
- #view_template ⇒ Object
Constructor Details
Instance Method Details
#view_template ⇒ Object
19 20 21 |
# File 'lib/ruby_ui/avatar/avatar.rb', line 19 def view_template(&) span(**attrs, &) end |