Actions

Button

Button with variants and tones. Wraps the Polaris <s-button> web component.

Usage

<template>
  <ShButton variant="primary" @click="handleClick">Save</ShButton>
  <ShButton variant="tertiary" tone="critical" @click="handleDelete">Delete</ShButton>
  <ShButton loading disabled>Processing…</ShButton>
</template>

Props

PropTypeDefaultDescription
variant'auto' | 'primary' | 'secondary' | 'tertiary'—Button visual style
tone'auto' | 'critical' | 'neutral'—Color tone
disabledboolean—Disables the button
loadingboolean—Shows a loading spinner
iconPolarisIcon—Icon to display
hrefstring—Makes the button a link
target'auto' | '_blank' | '_self' | '_parent' | '_top' | string—Link target
downloadstring—Download attribute for link buttons
type'button' | 'reset' | 'submit'—Button type attribute
accessibilityLabelstring—Accessible label
command'--auto' | '--show' | '--hide' | '--toggle'—Command for invoketarget pattern
commandForstring—Target element ID for command
interestForstring—Target element ID for interest

Events

EventPayloadDescription
clickMouseEventEmitted on button click
focusFocusEventEmitted on focus
blurFocusEventEmitted on blur

Slots

SlotDescription
defaultButton label

Polaris Element

Renders as <s-button>. See Polaris Button docs.

© 2026 KiriminAja. Polaris and Shopify are trademarks of Shopify Inc.

KiriminAja not affiliated with Shopify.