@wordpress/components Button variants not styled

The WordPress components docs are pulled from the development branch of the repository, meaning they may describe features and functionality that have yet to be released.

With the current version of the library used in WordPress, you declare the variant with the isPrimary, isSecondary, or isTertiary property:

<Button isSecondary onClick={open}>
    Select image...
</Button>