diff --git a/lib/bitstyles_phoenix/component/button.ex b/lib/bitstyles_phoenix/component/button.ex
index 26802b6..e11734a 100644
--- a/lib/bitstyles_phoenix/component/button.ex
+++ b/lib/bitstyles_phoenix/component/button.ex
@@ -1,5 +1,6 @@
defmodule BitstylesPhoenix.Component.Button do
use BitstylesPhoenix.Component
+ alias BitstylesPhoenix.Bitstyles
@moduledoc """
The button component.
@@ -12,7 +13,9 @@ defmodule BitstylesPhoenix.Component.Button do
@doc """
Renders anchor or button elements that look like a button — using the `a-button` classes.
- `href`, `navigate`, `patch` - if there’s one of these, you’ll get an anchor element, otherwise a button element. (See Phoenix.Component.link/1)
- - `variant` - specifies which visual variant of button you want, from those available in the CSS classes e.g. `ui`, `danger`
+ - `color` - specifies the color of the button, e.g `secondary`, `transparent`. Leave empty for default color. Introduced in Bitstyles 5.0.0.
+ - `shape` - specifies the color of the button, e.g `square`, `small`. Leave empty for default color. Introduced in Bitstyles 5.0.0.
+ - `variant` - specifies which visual variant of button you want, from those available in the CSS classes e.g. `ui`, `danger`. Deprecated in favor of `color` and `shape` in Bitstyles 5.0.0.
- `class` - Extra classes to pass to the badge. See `BitstylesPhoenix.Helper.classnames/1` for usage.
- `icon` - An icon name as string or a tuple with `{icon_name, icon_opts}` which is passed to `BitstylesPhoenix.Component.Icon.ui_icon/1` as
attributes. Additionally it is possible to pass `after: true` to the icon_opts, to make the icon appear after the button label instead of in
@@ -50,14 +53,14 @@ defmodule BitstylesPhoenix.Component.Button do
'''
iex> assigns = %{}
...> render ~H"""
- ...> <.ui_button href="/" variant="ui">
+ ...> <.ui_button href="/">
...> Publish
...>
...> """
''',
'''
"""
-
+
Publish
"""
@@ -69,14 +72,14 @@ defmodule BitstylesPhoenix.Component.Button do
'''
iex> assigns = %{}
...> render ~H"""
- ...> <.ui_button href="/" variant="ui" disabled>
+ ...> <.ui_button href="/" disabled>
...> Publish
...>
...> """
''',
'''
"""
-