ConfirmOrCancelButtons

Last chance to make the right decision.

Example

Props

    đŸ•šī¸ standard props
    loading
    boolean
    Indicates if the confirm button is in a loading state.
    false
    marginTop
    size
    Top margin of the button container.
    20px
    cancelText
    string
    Text of the cancel button.
    Annulla
    confirmText
    string
    Text of the confirm button.
    Salva
    confirmDisable
    boolean
    Disables the confirm button.
    false
    cancelDisable
    boolean
    Disables the cancel button.
    false
    🎨 style props
    No data available

Slots

    cancelButtonSnippet
    Slot for custom cancel button.
    Default content:
    
    <button
      class="text-button"
      onclick={handleCancel}
    >{cancelText}</button>
        
    Available variables:
    NameTypeDescription
    loadingbooleanLoading state.
    handleCancelfunctionCancel handler.
    cancelTextstringCancel button text.
    confirmButtonSnippet
    Slot for custom confirm button.
    Default content:
    
    <Button
      loading={loading}
      onclick={handleConfirm}
      disabled={confirmDisable}
    >{confirmText}</Button>
        
    Available variables:
    NameTypeDescription
    loadingbooleanLoading state.
    handleConfirmfunctionConfirm handler.
    confirmTextstringConfirm button text.
    confirmDisablebooleanConfirm button disabled state.

Events

    onconfirmClick
    Triggered when the confirm button is clicked.
    AttributeTypeDescription
    nativeEventMouseEventThe native click event.
    oncancelClick
    Triggered when the cancel button is clicked.
    AttributeTypeDescription
    nativeEventMouseEvent | KeyboardEventThe native click or keyboard event.