Skip to main content

Button
component

A versatile button component with multiple variants and sizes for user interactions. You can view the Storybook for more interactive examples.

Was this section helpful?

Button

import {Button} from '@shopify/shop-minis-react'

export default function MyComponent() {
const handleClick = () => {
console.log('Button pressed')
}

return <Button onClick={handleClick}>Continue</Button>
}

Preview

Button variants and configurations

A button with the Shop brand color background

A button for less prominent actions

A button for dangerous actions like delete

A button in a disabled state

Was this section helpful?

Primary button

import {Button} from '@shopify/shop-minis-react'

export default function MyComponent() {
const handleClick = () => {
console.log('Button pressed')
}

return <Button onClick={handleClick}>Continue</Button>
}