icontextbutton-library
v1.0.4
Published
Text and Icon button
Downloads
3
Readme
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.