Class: PhlexUI::Avatar
Defined Under Namespace
Classes: Builder, Fallback, Image
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" }
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
Methods inherited from Base
Constructor Details
Instance Method Details
#view_template ⇒ Object
19 20 21 |
# File 'lib/phlex_ui/avatar.rb', line 19 def view_template(&) span(**attrs, &) end |