diff --git a/src/lib/components/Button.svelte b/src/lib/components/form/Button.svelte similarity index 82% rename from src/lib/components/Button.svelte rename to src/lib/components/form/Button.svelte index b0c322b..8527c1d 100644 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/form/Button.svelte @@ -22,8 +22,8 @@ /** Make the button act as a link. */ href?: string | undefined; - /** Add the "w-full" class to the button. */ - fullwidth?: boolean; + /** Add a width class to the button. */ + width?: string; /** Enable the button's ":hover" state manually. */ activate?: boolean; @@ -40,7 +40,7 @@ color = undefined, submit = false, href = undefined, - fullwidth = false, + width = "w-auto", activate = false, activate_href = false, trigger_popup = { event: "click", target: "invalid" }, @@ -53,9 +53,9 @@