ui/ConfirmButton.svelte view source
accepts children
import ConfirmButton from '@fuzdev/fuz_app/ui/ConfirmButton.svelte'; onconfirm
(popover: Popover) => voidsnippet parameters
popover Popoverpopover_button_attrs?
HTMLButtonAttributeshide_on_confirm?
booleantruepopover_content?
Unlike on PopoverButton this is optional and has a confirm arg
Snippet<[popover: Popover, confirm: () => void]>snippet parameters
popover Popoverconfirm () => voidpopover_button_content?
Content for the popover button
Snippet<[popover: Popover, confirm: () => void]>snippet parameters
popover Popoverconfirm () => voidchildren?
Unlike on PopoverButton this has a confirm arg
Snippet<[popover: Popover, confirm: () => void]>snippet parameters
popover Popoverconfirm () => voidlabel?
Simple string content for the trigger. Mutually exclusive with children.
stringpending?
When true, the trigger is disabled and a spinner overlays the
content (mirrors PendingButton). The label / children stay
rendered underneath so the button keeps its size.
booleanfalseposition?
'left'align?
disable_outside_click?
booleanpopover_class?
stringpopover_attrs?
HTMLAttributes<HTMLDivElement>popover_container_attrs?
HTMLAttributes<HTMLDivElement>button?
Snippet<[popover: Popover]>snippet parameters
popover Popoverdisabled?
boolean | nullexternal types
OmitStrict<SvelteHTMLElements['button'], 'children'>