From 1162c9fde2b7291df47bf271a1c4e51305a2848c Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Wed, 6 Dec 2023 00:08:09 +0900 Subject: [PATCH] fix attribute name --- lib/doggo.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/doggo.ex b/lib/doggo.ex index 3e6e88d5..1656c0c7 100644 --- a/lib/doggo.ex +++ b/lib/doggo.ex @@ -130,13 +130,13 @@ defmodule Doggo do <.button>Confirm - <.button type="submit" kind={:secondary} size={:medium} shape={:pill}> + <.button type="submit" variant={:secondary} size={:medium} shape={:pill}> Submit """ attr :type, :string, values: ["button", "reset", "submit"], default: "button" - attr :kind, :atom, + attr :variant, :atom, values: [:primary, :secondary, :info, :success, :warning, :danger], default: :primary @@ -179,7 +179,7 @@ defmodule Doggo do <.button_link navigate={~p"/registration"} - kind={:primary} + variant={:primary} shape={:pill}> Submit @@ -191,7 +191,7 @@ defmodule Doggo do attr :method, :string, default: "get" attr :csrf_token, :any, default: true - attr :kind, :atom, + attr :variant, :atom, values: [:primary, :secondary, :info, :success, :warning, :danger], default: :primary