Files
homepage/src/lib/components/SaveFab.svelte
T
Alexander d93006a319 refactor(ui): SaveFab shares ActionButton shell
ActionButton now renders as <a> (href) or <button> (onclick), so
SaveFab wraps it to inherit the shake/hover/focus behavior already
used by AddButton/EditButton. Body-parts review replaces its inline
save button with SaveFab for consistency.
2026-04-21 08:48:26 +02:00

11 lines
337 B
Svelte

<script>
import Check from '$lib/assets/icons/Check.svelte';
import ActionButton from './ActionButton.svelte';
let { disabled = false, onclick, label = 'Save', type = 'submit' } = $props();
</script>
<ActionButton {type} {onclick} {disabled} ariaLabel={label}>
<Check fill="white" width="2rem" height="2rem" />
</ActionButton>