Buttoncomponent
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>
}
examples
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

Anchor to examplesExamples
Button variants and configurations
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>
}
examples
Primary button
description
A button with the Shop brand color background
import {Button} from '@shopify/shop-minis-react' export default function MyComponent() { const handleClick = () => { console.log('Button pressed') } return <Button onClick={handleClick}>Continue</Button> }
Secondary button
description
A button for less prominent actions
import {Button} from '@shopify/shop-minis-react' export default function MyComponent() { return <Button variant="secondary">Cancel</Button> }
Destructive button
description
A button for dangerous actions like delete
import {Button} from '@shopify/shop-minis-react' export default function MyComponent() { return <Button variant="destructive">Delete</Button> }
Disabled button
description
A button in a disabled state
import {Button} from '@shopify/shop-minis-react' export default function MyComponent() { return <Button disabled>Continue</Button> }