Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

Feature - ButtonsGroup [Design]Β #68

@omarefg

Description

@omarefg

Checklist βœ…

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary πŸ’‘

The ButtonsGroupo component is a component that works like a one of many choice to the user, these choices are all in the same context but the user can select only one. For example, selecting:

  • Last week
  • Last month
  • Last year

In the dashboard module.

Screenshot from 2021-11-14 11-30-22

The component will be used like this:

import { ButtonGroup } from '@platzily-ui/components'

const MyComponent = () => {
  const actions = [
    {   // extends ButtonsProps object and
      selected: true || false // it applies the selected styles to the button
    }
  ]

  return (
    <ButtonsGroup
      actions={actions}
    />
  )
}

Requirements 🌈

The component must be tested using unit testing

Motivation πŸ”¦

A way to let the user decide between any qty of contexts

Metadata

Metadata

Assignees

Labels

carry-over-4task that started in sprint 4 but it's not finished.designDesign taskfeatureNew feature or requestweight:3something that required understanding

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions