0.0.2 • Published 8 months ago

@licuido-ui/ui_label v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Label

The Label component is a customizable label element designed to display text or a React element with a colored background. It provides options to set the text color, background color, and a click event handler for interactivity.

Author

Link

Story Book Link ButtonGroup

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_label

Import component

import { Label } from '@licuido-ui/ui_label';

Usage

<Label  color={'#fff'}  />

Image

alt text

Sample code

<Label 
  id={'label'}
  color='#fff' 
  bgColor='#007bff' 
  label='Click Me' 
  onClickFun={() => console.log('Label clicked')} 
/>

Props

NameTypeDefault ValueDescription
idstringstringstring
classNamestring''Additional CSS class for styling the label component.
sxSxProps{}Custom style prop for using MUI's sx prop.
colorstring'#e2eafa'Color of the label text.
bgColorstring'#7692cc'Background color of the label.
labelstring | ReactElement''The text or React element to be displayed within the label.
onClickFun() => void() => falseEvent handler for when the label is clicked.