npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@licuido-ui/ui_button-group

v0.0.2

Published

The ButtonGroup component provides a group of buttons, allowing users to select one option from a set of choices. The selected button is highlighted with a specified color, while unselected buttons have a different background color. This component is usef

Downloads

6

Readme

ButtonGroup

The ButtonGroup component provides a group of buttons, allowing users to select one option from a set of choices. The selected button is highlighted with a specified color, while unselected buttons have a different background color. This component is useful for creating interactive UI elements, such as filters, tabs, or toggles.

Author

Link

Story Book Link ButtonGroup

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_button-group

Import component

import { ButtonGroup } from '@licuido-ui/ui_button-group';

Usage

<ButtonGroup buttons={[]} />

Image

buttonGroup

Sample Code

<ButtonGroup
  buttons={buttons}
  onClick={handleButtonClick}
  selectedColor='#fff'
  selectedBgColor='blue'
  unselectBgColor='lightgray'
  color='black'
  fontSize='16px'
  fontWeight='bold'
  variant='contained'
/>

Props

| Prop Name | Type | Default | Description | | --------------- | -------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------- | | id | This id unique and To run BDD test , also applied in data-id | string | string | | buttons | ButtonItem[] | [] | An array of button items, each with a label and value. | | onClick | (e: MouseEvent<HTMLButtonElement>, value: number) => void | () => false | Callback function when a button is clicked. | | variant | 'outlined' \| 'contained' | 'contained' | The style variant for the buttons. Possible values are 'outlined' or 'contained'. | | size | 'small' \| 'medium' \| 'large' | 'medium' | The size of the buttons. Possible values are 'small', 'medium', or 'large'. | | disabled | boolean | false | Whether the button group is disabled or not. | | selectedColor | string | '' | The text color of the selected button. | | unselectBgColor | string | '' | The background color of unselected buttons when variant is 'contained'. | | color | string | '#fff' | The text color of unselected buttons when variant is 'contained'. | | selectedBgColor | string | '' | The background color of the selected button when variant is 'contained'. | | fontSize | string \| number | '' | The font size of the buttons. | | fontWeight | string \| number | '' | The font weight of the buttons. | | btnStyle | SxProps | {} | Custom style object for individual buttons. | | rootstyle | SxProps | {} | Custom style object for the root container. | | btnGroupStyle | SxProps | {} | Custom style object for the MuiButtonGroup container. | | className | string | '' | Additional CSS class name for the root container. | | sx | SxProps | {} | Custom style object using MUI's sx prop. |

ButtonItem

| Prop Name | Type | Default | Description | | ---------- | --------------- | ----------- | ------------------------------------------ | | label | string | - | The label text of the button. | | value | number | - | The value associated with the button. | | startIcon | ReactNode | undefined | The start icon of the button (optional). | | endIcon | ReactNode | undefined | The end icon of the button (optional). | | isdisabled | true \| false | undefined | Whether the button is disabled (optional). |