Button

Last Update : 14 August, 2023 | Published : 01 July, 2023 | 2 Min Read

Buttons - To allow users to make choices, take actions with a single click. Buttons are usually used in:

  • Forms
  • Tables
  • Cards
  • Toolbars

Import

import Button from '@intelops/intelops_ui/packages/react/components/Button/src';

Create a Button

 <Button
    variant="gradient"
    className="mybutton"
    size="medium"
    color="orange"
    onClick={handleButtonClick}>
    Button Name
</Button>

Props

NameTypeDescription
idstringUnique to each element can be used to lookup an element getElementById( )
childrennodeComponents content
classNametextTo add new or to override the applied styles
typetextthe type of button - can be given custom names and be used for grouping and styling
varianttextThe type of variant to use (all available button types in the table below)
hrefstringURL link to the page when you click the button
onClickfunctionTo handle clicks - applied to the DOM element
colorstringTo change buttons color

Variant Types (Available button types)

The button come in different styles, colors and sizes.

Button Style
VariantDescription
containedbasic button with a single colored background
gradientbutton with a gradient of 2 colors
outlinedbutton with a outline but no backgorund color
textbutton with colored text but no outline or background
setIconbutton with an icon instead of text
Button Color

Each button has 8 colors to choose from:

  1. fushia
  2. slate
  3. lime
  4. red
  5. orange
  6. cyan
  7. gray
  8. darkGray
Button Sizes

3 size options:

  • small
  • medium
  • large

Looking for Cloud-Native Implementation?

Finding the right talent is pain. More so, keeping up with concepts, culture, technology and tools. We all have been there. Our AI-based automated solutions helps eliminate these issues, making your teams lives easy.

Contact Us