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
disabledbooleanDisables the button
loadingbooleanShows a loading spinner
iconPolarisIconIcon to display
hrefstringMakes the button a link
target'auto' | '_blank' | '_self' | '_parent' | '_top' | stringLink target
downloadstringDownload attribute for link buttons
type'button' | 'reset' | 'submit'Button type attribute
accessibilityLabelstringAccessible label
command'--auto' | '--show' | '--hide' | '--toggle'Command for invoketarget pattern
commandForstringTarget element ID for command
interestForstringTarget 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.