Skip to content

Add SaveBar for unsaved form changes - #25

Merged
JoshiCodes merged 1 commit into
masterfrom
feat/unsaved-changes-bar
Dec 1, 2026
Merged

JoshiCodes merged 1 commit into
masterfrom
feat/unsaved-changes-bar

Conversation

@JoshiCodes

Copy link
Copy Markdown
Owner

Adds SaveBar: instead of a permanent Save button, a bar flies in from the bottom of the window once a form has changes and leaves again after saving.

  • show drives it; the dirty check stays with the caller
  • onsave, optional ondiscard, saving state with spinner
  • ⌘S / Ctrl+S saves while shown (hotkey={false} to turn off)
  • guard asks before the tab is closed or reloaded
  • contained pins it to the nearest positioned parent instead of the window
  • Inverted bar in light mode, raised dark surface in dark mode

Docs: catalog entry and two examples. The account settings template now uses the bar in place of its Save button. Version bumped to 1.9.0.

A bar that flies in from the bottom while a form has unsaved changes,
with save, optional discard, a mod+s shortcut, an unload guard and a
contained mode for panels. The account settings template uses it in
place of its Save button.
@JoshiCodes
JoshiCodes merged commit 4dc8e60 into master Dec 1, 2026
1 check passed
@JoshiCodes
JoshiCodes deleted the feat/unsaved-changes-bar branch December 1, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant