ben-ryder / jigsaw

A design system and component library for use in my personal projects.
https://jigsaw.benryder.dev
GNU General Public License v3.0
0 stars 0 forks source link

Add ButtonGroup Component #9

Closed ben-ryder closed 1 year ago

ben-ryder commented 2 years ago

What is your component idea? It is quite common to have button groups (for example a cancel & save button together). Having a button group component would be good to keep this consistant.

What are your initial ideas component usage (component props, styling variations etc)?

<ButtonGroup>
   <Button styling="destructive">Delete</Button>
   <Button>Save</Button>
</ButtonGroup>
  <ButtonGroup>
    <ButtonGroup.Wrapper>
      <ButtonGroup.Item>
        <Button styling="destructive">Delete</Button>
      </ButtonGroup.Item>
      <ButtonGroup.Item>
        <Button>Save</Button>
      </ButtonGroup.Item>
  </ButtonGroup.Wrapper>
</ButtonGroup>

What are your initial ideas for styling? no styling, just adds a single flex wrapper and spacing around the buttons.

Additional context

ben-ryder commented 1 year ago

closing as related to old React library