d93006a319
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.
11 lines
337 B
Svelte
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>
|