Current section

Files

Jump to
moon_icons lib_ex moon assets patterns pattern_perspective_dotted.ex
Raw

lib_ex/moon/assets/patterns/pattern_perspective_dotted.ex

defmodule Moon.Assets.Patterns.PatternPerspectiveDotted do
@moduledoc false
use MoonIcons.StatelessComponent
prop(click, :event)
prop(class, :string)
# All the other props below are deprecated!
# Please use only tailwind classes and the class prop
prop(color, :string, values: colors())
prop(height, :string)
prop(width, :string)
prop(font_size, :string)
prop(vertical_align, :string)
def render(assigns) do
~F"""
<svg
class={
"moon-pattern",
@class,
"text-#{@color}": @color,
"text-#{@font_size}": @font_size,
"cursor-pointer": @click
}
:on-click={@click}
style={get_style(
color: @color,
height: @height,
width: @width,
font_size: @font_size,
vertical_align: @vertical_align
)}
>
<use href="/moon_icons/svgs/patterns/pattern-perspective-dotted.svg#item" />
</svg>
"""
end
end