Socket
Socket
Sign inDemoInstall

@synerise/ds-button-group

Package Overview
Dependencies
215
Maintainers
1
Versions
220
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @synerise/ds-button-group

Button-Group UI Component for the Synerise Design System


Version published
Weekly downloads
90
increased by57.89%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

id: button-group title: Button-Group

A group of buttons is used to wrap a series of buttons.

When to use it


  • To combine primary and secondary buttons.
  • To allow users to navigate between several separate tabs with options in a main screen.

Component anatomy


This is a complex component, which means that it may consist of other components:

  • icon
  • button
  • utils

Installation


npm i @synerise/ds-button-group

or

yarn add @synerise/ds-button-group

Usage


import ButtonGroup from '@synerise/ds-button-group'


<ButtonGroup
  title={'Some title'}
  size={'large'}
  description={'Some description'}
>
  <Button onClick={() => alert('Clicked!')}>Click me!</Button>
  <Button onClick={() => alert('Clicked!')}>Click me!</Button>
  <Button onClick={() => alert('Clicked!')}>Click me!</Button>
</ButtonGroup>

Demo


API


PropertyDescriptionTypeDefault
titleThe title of the groupstring-
descriptionThe description of the groupstring-
sizeDefines the size of the button: small, largestring-
buttonsPositionDefines the horizontal position of buttons: left, center or rightstringcenter
fullWidthSet buttons width to fill all available spacebooleanfalse
childrenButtons used in the groupReact.ReactNode-

FAQs

Last updated on 06 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc