Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 687 Bytes

VerticalButtonGroup.md

File metadata and controls

41 lines (30 loc) · 687 Bytes

VerticalButtonGroup (component)

A vertical button group where the first option is the primary option to select, while the second option is deemphasized. Typically the first button would be a confirmation button, while the second may be dismissal.

Props

options (required)

Button options *

type: arrayOf[object Object]

Examples

Basic VerticalButtonGroup

Vertical Button Group

<VerticalButtonGroup
  mt={2}
  px={2}
  options={[
    {
      label: 'Primary Button',
      onSelect: noop
    },
    {
      label: 'Secondary Button',
      onSelect: noop
    }
  ]}
/>