icontextbutton-library

1.0.4 • Public • Published

IconTextButton Library

The IconTextButton Library provides a versatile React component for displaying text and icons in a button group.

Installation

To install the IconTextButton Library, you can use npm or yarn:

npm install icontextbutton-library

or

yarn add icontextbutton-library

Usage

The IconTextButton component accepts the following props:

buttons: An array of objects containing information for each button. isRounded (boolean): Determines whether the buttons have rounded corners. active (number): Identifies the currently active button. onButtonClick (function): Function to handle button clicks.

Props

buttons: An array of objects, each specifying the configuration for an individual button. Each object should contain: id: A unique identifier for the button. icon: The icon component to be rendered. label: The text label for the button. iconSize (optional): Size of the icon. isRounded (optional): Determines if the buttons have rounded corners. active: Identifies the currently active button. onButtonClick: Function to handle button clicks.

Readme

Keywords

Package Sidebar

Install

npm i icontextbutton-library

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

6.98 kB

Total Files

10

Last publish

Collaborators

  • archana0405