BitstylesPhoenix.Component.Button.ui_button

You're seeing just the function ui_button, go back to BitstylesPhoenix.Component.Button module for more information.

This wraps BitstylesPhoenix.Helper.Button.ui_button/2 in a component, passing all attributes as options and it's content as button content.

See BitstylesPhoenix.Helper.Button.ui_button/2 for more examples and options.

Default button

iex> assigns = %{}
...> render ~H"""
...> <.ui_button>
...>   Publish
...> </.ui_button>
...> """
"""
<button class="a-button" type="button">
  Publish
</button>
"""
iex> assigns = %{}
...> render ~H"""
...> <.ui_button to="/" variant="ui">
...>   Publish
...> </.ui_button>
...> """
"""
<a class="a-button a-button--ui" href="/">
  Publish
</a>
"""